Class TDbMetaDataInspector

Description

Base class for database meta data inspectors.

  • abstract:
  • since: 3.1
  • version: $Id: TDbMetaDataInspector.php 1545 2006-12-03 22:26:04Z wei $
  • author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/ActiveRecord/Vendor/TDbMetaDataInspector.php (line 21)


	
			
Direct descendents
Class Description
TMysqlMetaDataInspector TMysqlMetaDataInspector class.
TPgsqlMetaDataInspector Table meta data inspector for Postgres database 7.3 or later.
TSqliteMetaDataInspector Table meta data inspector for Sqlite database.
Method Summary
TDbMetaDataInspector __construct (mixed $conn)
TDbMetaData createMetaData (string $table, array $columns, array $primary, array $foreign)
array getColumnDefinitions (string $table)
array getConstraintKeys (string $table)
TDbMetaData getTableMetaData (string $table)
Methods
Constructor __construct (line 25)
  • access: public
TDbMetaDataInspector __construct (mixed $conn)
createMetaData (line 79)

Create a new instance of meta data.

  • return: table meta data.
  • access: protected
  • abstract:
TDbMetaData createMetaData (string $table, array $columns, array $primary, array $foreign)
  • string $table: table name
  • array $columns: column meta data
  • array $primary: primary key meta data
  • array $foreign: foreign key meta data.

Redefined in descendants as:
getColumnDefinitions (line 62)

Get the column definitions for given table.

  • return: column name value pairs of column meta data.
  • access: protected
  • abstract:
array getColumnDefinitions (string $table)
  • string $table: table name.

Redefined in descendants as:
getConstraintKeys (line 69)

Gets the primary and foreign key details for the given table.

  • return: key value pairs with keys 'primary' and 'foreign'.
  • access: protected
  • abstract:
array getConstraintKeys (string $table)
  • string $table: table name.

Redefined in descendants as:
getDbConnection (line 41)
  • return: database connection.
  • access: public
TDbConnection getDbConnection ()
getTableMetaData (line 50)
  • return: table meta data.
  • access: public
TDbMetaData getTableMetaData (string $table)
  • string $table: table name
setDbConnection (line 33)
  • access: public
void setDbConnection (TDbConnection $conn)

Documentation generated on Sun, 14 Jan 2007 21:42:17 -0500 by phpDocumentor 1.3.0RC4