Class TDbTableInfo
Direct Known Sub-classes:
TDbTableInfo class describes the meta data of a database table.
Constructor Summary |
public |
Sets the database table meta data information.
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Sets the database table meta data information.
|
Method Details |
createCommandBuilder
|
getColumn
Input |
string | $name | column id |
Output |
TDbTableColumn
| column information. |
Exception |
|
getColumnNames
public array getColumnNames |
(array 0 ) |
Input |
array | 0 | list of column Id, empty to get all columns. |
Output |
array
| table column names (identifier quoted) |
Exception |
|
getColumns
public TMap getColumns |
() |
Output |
TMap
| TDbTableColumn column meta data. |
Exception |
|
getForeignKeys
public array getForeignKeys |
() |
Output |
array
| tuples of foreign table and column name. |
Exception |
|
getInfo
protected mixed getInfo |
(string $name , mixed $default ) |
Input |
string | $name | information array key name |
mixed | $default | default value if information array value is null |
Output |
mixed
| information array value. |
Exception |
|
getIsView
public boolean getIsView |
() |
Output |
boolean
| whether the table is a view, default is false. |
Exception |
|
getLowerCaseColumnNames
public array getLowerCaseColumnNames |
() |
Output |
array
| lowercased column key names mapped to normal column ids. |
Exception |
|
getPrimaryKeys
public string[] getPrimaryKeys |
() |
Output |
string[]
| names of primary key columns. |
Exception |
|
getTableFullName
public string getTableFullName |
() |
Output |
string
| full name of the table, database dependent. |
Exception |
|
getTableName
public string getTableName |
() |
Output |
string
| name of the table this column belongs to. |
Exception |
|
setInfo
protected void setInfo |
(string $name , mixed $value ) |
Input |
string | $name | information array key name |
mixed | $value | new information array value. |
Output |
Exception |
|
|