Source for file OracleDeleteQueryResult.class.php

Documentation is available at OracleDeleteQueryResult.class.php

  1. <?php
  2. /**
  3. * @package harmoni.dbc.oracle
  4. *
  5. * @copyright Copyright &copy; 2005, Middlebury College
  6. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  7. *
  8. * @version $Id: OracleDeleteQueryResult.class.php,v 1.8 2007/09/05 21:39:00 adamfranco Exp $
  9. */
  10. require_once(HARMONI."DBHandler/DeleteQueryResult.interface.php");
  11.  
  12. /**
  13. * The DeleteQueryResult interface provides the functionality common to all Delete query results.
  14. * For example, you can get the primary key for the last Deleteion, get number of Deleteed rows, etc.
  15. *
  16. * @package harmoni.dbc.oracle
  17. *
  18. * @copyright Copyright &copy; 2005, Middlebury College
  19. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  20. *
  21. * @version $Id: OracleDeleteQueryResult.class.php,v 1.8 2007/09/05 21:39:00 adamfranco Exp $
  22. */
  23. class OracleDeleteQueryResult
  24. implements DeleteQueryResultInterface
  25. {
  26.  
  27. /**
  28. * The resource id for this query.
  29. * @var integer __resourceId
  30. * @access private
  31. */
  32. var $_resourceId;
  33.  
  34.  
  35. /**
  36. * Stores the number of rows processed by the query.
  37. * Stores the number of rows processed by the query.
  38. * @var integer $_numberOfRows The number of rows processed by the query.
  39. * @access private
  40. */
  41. var $_numberOfRows;
  42.  
  43.  
  44. /**
  45. * The constructor.
  46. * @access public
  47. * @param integer $resourceId The resource id for this query.
  48. */
  49. function OracleDeleteQueryResult($resourceId) {
  50. // ** parameter validation
  51. $resourceRule = ResourceValidatorRule::getRule();
  52. ArgumentValidator::validate($resourceId, $resourceRule, true);
  53. // ** end of parameter validation
  54.  
  55. $this->_resourceId = $resourceId;
  56. $this->_numberOfRows = ocirowcount($this->_resourceId);
  57. }
  58.  
  59.  
  60. /**
  61. * Returns the number of rows that the query processed.
  62. * Returns the number of rows that the query processed. For a SELECT query,
  63. * this would be the total number of rows selected. For a UPDATE, INSERT, or
  64. * Delete query, this would be the number of rows that were affected.
  65. * @return integer Number of rows that were processed by the query.
  66. * @access public
  67. */
  68. function getNumberOfRows() {
  69. return $this->_numberOfRows;
  70. }
  71.  
  72. }
  73.  
  74. ?>

Documentation generated on Wed, 19 Sep 2007 10:25:19 -0400 by phpDocumentor 1.3.0RC3