Source for file oci.dbschema.php

Documentation is available at oci.dbschema.php

  1. <?php
  2. /**
  3. * @package     jelix
  4. * @subpackage  db
  5. * @author      Laurent Jouanneau
  6. * @contributor Gwendal Jouannic
  7. * @copyright   2008 Gwendal Jouannic, 2009-2010 Laurent Jouanneau
  8. * @link        http://www.jelix.org
  9. * @licence     http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
  10. */
  11.  
  12. /**
  13.  * 
  14.  * @package    jelix
  15.  * @subpackage db_driver
  16.  */
  17. class ociDbTable extends jDbTable {
  18.  
  19.     protected function _loadColumns() {
  20.         throw new Exception ('Not Implemented');
  21.     }
  22.  
  23.     protected function _alterColumn(jDbColumn $old, jDbColumn $new) {
  24.         throw new Exception ('Not Implemented');
  25.     }
  26.  
  27.     protected function _addColumn(jDbColumn $new) {
  28.         throw new Exception ('Not Implemented');
  29.     }
  30.  
  31.     protected function _loadIndexesAndKeys() {
  32.         throw new Exception ('Not Implemented');
  33.     }
  34.  
  35.     protected function _createIndex(jDbIndex $index) {
  36.         throw new Exception ('Not Implemented');
  37.     }
  38.  
  39.     protected function _dropIndex(jDbIndex $index) {
  40.         throw new Exception ('Not Implemented');
  41.     }
  42.  
  43.     protected function _loadReferences() {
  44.         throw new Exception ('Not Implemented');
  45.     }
  46.  
  47.     protected function _createReference(jDbReference $ref) {
  48.         throw new Exception ('Not Implemented');
  49.     }
  50.  
  51.     protected function _dropReference(jDbReference $ref) {
  52.         throw new Exception ('Not Implemented');
  53.     }
  54. }
  55.  
  56. /**
  57.  * 
  58.  * @package    jelix
  59.  * @subpackage db_driver
  60.  */
  61. class ociDbSchema extends jDbSchema {
  62.  
  63.     protected function _createTable($name, $columns, $primaryKey, $attributes = array()) {
  64.         throw new Exception ('Not Implemented');
  65.         //return  new ociDbTable($this->schema->getConn()->prefixTable($name), $this);
  66.     }
  67.  
  68.     protected function _getTables() {
  69.         $results = array ();
  70.  
  71.         $rs = $this->conn->query ('SELECT TABLE_NAME FROM USER_TABLES');
  72.  
  73.         while ($line = $rs->fetch ()){
  74.             $results[$line->table_name] = new ociDbTable($line->table_name, $this);
  75.         }
  76.  
  77.         return $results;
  78.     }
  79.  
  80. }

Documentation generated on Wed, 04 Jan 2017 22:58:23 +0100 by phpDocumentor 1.4.3