Commit dbad2625 authored by zYne's avatar zYne

Doctrine_Import driver base methods added

parent e4fe1825
......@@ -18,18 +18,13 @@
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
Doctrine::autoload('Doctrine_Connection_Module');
/**
* class Doctrine_Import
* Main responsible of performing import operation. Delegates database schema
* reading to a reader object and passes the result to a builder object which
* builds a Doctrine data model.
*
* @package Doctrine
* @category Object Relational Mapping
* @link www.phpdoctrine.com
......@@ -37,40 +32,112 @@
* @since 1.0
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
*/
class Doctrine_Import {
class Doctrine_Import extends Doctrine_Connection_Module {
/**
* lists all databases
*
* @return array
*/
public function listDatabases() {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists all availible database functions
*
* @return array
*/
public function listFunctions() {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists all database triggers
*
* @param string|null $database
* @return array
*/
public function listTriggers($database = null) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists all database sequences
*
* @param string|null $database
* @return array
*/
public function listSequences($database = null) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists table constraints
*
* @param string $table database table name
* @return array
*/
public function listTableConstraints($table) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* @var Doctrine_Import_Reader $reader
* lists table constraints
*
* @param string $table database table name
* @return array
*/
private $reader;
public function listTableColumns($table) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* @var Doctrine_Import_Builder $builder
* lists table constraints
*
* @param string $table database table name
* @return array
*/
private $builder;
public function listTableIndexes($table) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists tables
*
* @param string|null $database
* @return array
*/
public function listTables($database = null) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists table triggers
*
* @param string $table database table name
* @return array
*/
public function listTableTriggers($table) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists table views
*
* @return
* @access public
* @param string $table database table name
* @return array
*/
public function import( ) {
public function listTableViews($table) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists database users
*
* @param Doctrine_Import_Reader reader
* @return void
* @return array
*/
public function setReader(Doctrine_Import_Reader $reader) {
$this->reader = $reader;
public function listUsers() {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
/**
* lists database views
*
* @param Doctrine_Import_Builder builder
* @return void
* @param string|null $database
* @return array
*/
public function setBuilder(Doctrine_Import_Builder $builder) {
$this->builder = $builder;
public function listViews($database = null) {
throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment