Source for file ResultMetaData.php

Documentation is available at ResultMetaData.php

  1. <?php
  2. /**
  3. * ResultMetaData contains information about a specific column in the
  4. * ResultTable. You may retrieve the ResultMetaData for each column by
  5. * calling the ResultTable method getResultMetaData().
  6. *
  7. * <p>
  8. * OSID Version: 2.0
  9. * </p>
  10. *
  11. * <p>
  12. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  13. * O.K.I&#46; OSID Definition License}.
  14. * </p>
  15. *
  16. * @package org.osid.sql
  17. */
  18. class ResultMetaData
  19. {
  20. /**
  21. * return the column index. Columns are numbered beginning with one.
  22. *
  23. * @return int
  24. *
  25. * @throws object SqlException An exception with one of the following
  26. * messages defined in org.osid.sql.SqlException may be thrown:
  27. * {@link org.osid.sql.SqlException#OPERATION_FAILED}
  28. * OPERATION_FAILED}, {@link }
  29. * org.osid.sql.SqlException#PERMISSION_DENIED PERMISSION_DENIED},
  30. * {@link org.osid.sql.SqlException#CONFIGURATION_ERROR}
  31. * CONFIGURATION_ERROR}, {@link }
  32. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  33. *
  34. * @access public
  35. */
  36. function getColumnIndex () {
  37. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  38. }
  39.  
  40. /**
  41. * return the column name. Every column in a ResultTable has a name.
  42. *
  43. * @return string
  44. *
  45. * @throws object SqlException An exception with one of the following
  46. * messages defined in org.osid.sql.SqlException may be thrown:
  47. * {@link org.osid.sql.SqlException#OPERATION_FAILED}
  48. * OPERATION_FAILED}, {@link }
  49. * org.osid.sql.SqlException#PERMISSION_DENIED PERMISSION_DENIED},
  50. * {@link org.osid.sql.SqlException#CONFIGURATION_ERROR}
  51. * CONFIGURATION_ERROR}, {@link }
  52. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  53. *
  54. * @access public
  55. */
  56. function getColumnName () {
  57. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  58. }
  59.  
  60. /**
  61. * The SQL data type of this column is an instance of org.osid.shared.Type.
  62. * It represents one of the data types supported by the implementation.
  63. *
  64. * @return object Type
  65. *
  66. * @throws object SqlException An exception with one of the following
  67. * messages defined in org.osid.sql.SqlException may be thrown:
  68. * {@link org.osid.sql.SqlException#OPERATION_FAILED}
  69. * OPERATION_FAILED}, {@link }
  70. * org.osid.sql.SqlException#PERMISSION_DENIED PERMISSION_DENIED},
  71. * {@link org.osid.sql.SqlException#CONFIGURATION_ERROR}
  72. * CONFIGURATION_ERROR}, {@link }
  73. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  74. *
  75. * @access public
  76. */
  77. function getColumnType () {
  78. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  79. }
  80.  
  81. /**
  82. * return whether this column allows nulls
  83. *
  84. * @return boolean
  85. *
  86. * @throws object SqlException An exception with one of the following
  87. * messages defined in org.osid.sql.SqlException may be thrown:
  88. * {@link org.osid.sql.SqlException#OPERATION_FAILED}
  89. * OPERATION_FAILED}, {@link }
  90. * org.osid.sql.SqlException#PERMISSION_DENIED PERMISSION_DENIED},
  91. * {@link org.osid.sql.SqlException#CONFIGURATION_ERROR}
  92. * CONFIGURATION_ERROR}, {@link }
  93. * org.osid.sql.SqlException#UNIMPLEMENTED UNIMPLEMENTED}
  94. *
  95. * @access public
  96. */
  97. function areNullsAllowed () {
  98. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  99. }
  100. }
  101.  
  102. ?>

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