Source for file Row.php

Documentation is available at Row.php

  1. <?php
  2. /**
  3. * A Row contains the row contents from a ResultTable. Its methods provide
  4. * access to the data returned in a ResultTable.
  5. *
  6. * <p>
  7. * OSID Version: 2.0
  8. * </p>
  9. *
  10. * <p>
  11. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  12. * O.K.I&#46; OSID Definition License}.
  13. * </p>
  14. *
  15. * @package org.osid.sql
  16. */
  17. class Row
  18. {
  19. /**
  20. * retrieve data from the column specified by index. This method uses the
  21. * standard sql convention of the first column has an index of 1.
  22. *
  23. * @param int $columnIndex
  24. *
  25. * @return object mixed (original type: java.io.Serializable)
  26. *
  27. * @throws object SqlException An exception with one of the following
  28. * messages defined in org.osid.sql.SqlException may be thrown:
  29. * {@link org.osid.sql.SqlException#DATA_RETRIEVAL_ERROR}, {@link }
  30. * org.osid.sql.SqlException#INVALID_COLUMN_INDEX}, {@link }
  31. * org.osid.sql.SqlException#OPERATION_FAILED OPERATION_FAILED},
  32. * {@link org.osid.sql.SqlException#PERMISSION_DENIED}
  33. * PERMISSION_DENIED}, {@link }
  34. * org.osid.sql.SqlException#CONFIGURATION_ERROR
  35. * CONFIGURATION_ERROR}, {@link }
  36. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  37. *
  38. * @access public
  39. */
  40. function getColumnByIndex ( $columnIndex ) {
  41. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  42. }
  43.  
  44. /**
  45. * retrieve data from the column specified by name
  46. *
  47. * @param string $columnName
  48. *
  49. * @return object mixed (original type: java.io.Serializable)
  50. *
  51. * @throws object SqlException An exception with one of the following
  52. * messages defined in org.osid.sql.SqlException may be thrown:
  53. * {@link org.osid.sql.SqlException#DATA_RETRIEVAL_ERROR}, {@link }
  54. * org.osid.sql.SqlException#OPERATION_FAILED OPERATION_FAILED},
  55. * {@link org.osid.sql.SqlException#PERMISSION_DENIED}
  56. * PERMISSION_DENIED}, {@link }
  57. * org.osid.sql.SqlException#CONFIGURATION_ERROR
  58. * CONFIGURATION_ERROR}, {@link }
  59. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  60. *
  61. * @access public
  62. */
  63. function getColumnByName ( $columnName ) {
  64. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  65. }
  66.  
  67. /**
  68. * return the columns associated with this Row.
  69. *
  70. * @return object ObjectIterator
  71. *
  72. * @throws object SqlException An exception with one of the following
  73. * messages defined in org.osid.sql.SqlException may be thrown:
  74. * {@link org.osid.sql.SqlException#DATA_RETRIEVAL_ERROR}, {@link }
  75. * org.osid.sql.SqlException#OPERATION_FAILED OPERATION_FAILED},
  76. * {@link org.osid.sql.SqlException#PERMISSION_DENIED}
  77. * PERMISSION_DENIED}, {@link }
  78. * org.osid.sql.SqlException#CONFIGURATION_ERROR
  79. * CONFIGURATION_ERROR}, {@link }
  80. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  81. *
  82. * @access public
  83. */
  84. function getColumns () {
  85. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  86. }
  87. }
  88.  
  89. ?>

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