diff options
author | Christophe.Boulain <> | 2009-05-13 06:59:31 +0000 |
---|---|---|
committer | Christophe.Boulain <> | 2009-05-13 06:59:31 +0000 |
commit | 7c6ca9a1d405826acc53ca9b1d61a748fb477180 (patch) | |
tree | c06b0f5560c5407302da71a24f949cdd4e923965 /framework/Data | |
parent | 5d8f02c263283f1bf825f980ecf4ce8cab4013a3 (diff) |
Fixed Issue#154
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/Common/Oracle/TOracleMetaData.php | 43 |
1 files changed, 6 insertions, 37 deletions
diff --git a/framework/Data/Common/Oracle/TOracleMetaData.php b/framework/Data/Common/Oracle/TOracleMetaData.php index bb8e9b7b..5fdf1d5c 100644 --- a/framework/Data/Common/Oracle/TOracleMetaData.php +++ b/framework/Data/Common/Oracle/TOracleMetaData.php @@ -10,7 +10,10 @@ * @package System.Data.Common.Oracle */ - +/** + * Load the base TDbMetaData class. + */ +Prado::using('System.Data.Common.TDbMetaData'); Prado::using('System.Data.Common.Oracle.TOracleTableInfo'); Prado::using('System.Data.Common.Oracle.TOracleTableColumn'); @@ -22,28 +25,11 @@ Prado::using('System.Data.Common.Oracle.TOracleTableColumn'); * @package System.Data.Common.Oracle * @since 3.1 */ -class TOracleMetaData extends TComponent +class TOracleMetaData extends TDbMetaData { - private $_tableInfoCache=array(); - private $_connection; private $_defaultSchema = 'system'; - /** - * @param TDbConnection database connection. - */ - public function __construct($conn) - { - $this->_connection=$conn; - } - - /** - * @return TDbConnection database connection. - */ - public function getDbConnection() - { - return $this->_connection; - } - + /** * @return string TDbTableInfo class name. */ @@ -69,23 +55,6 @@ class TOracleMetaData extends TComponent } /** - * Obtains table meta data information for the current connection and given table name. - * @param string table or view name - * @return TDbTableInfo table information. - */ - public function getTableInfo($tableName=null) - { - $key = $tableName===null?$this->getDbConnection()->getConnectionString():$tableName; - if(!isset($this->_tableInfoCache[$key])) - { - $class = $this->getTableInfoClass(); - $tableInfo = $tableName===null ? new $class : $this->createTableInfo($tableName); - $this->_tableInfoCache[$key] = $tableInfo; - } - return $this->_tableInfoCache[$key]; - } - - /** * @param string table name with optional schema name prefix, uses default schema name prefix is not provided. * @return array tuple as ($schemaName,$tableName) */ |