PHP Класс Prado\Data\Common\Oracle\TOracleMetaData

С версии: 3.1
Наследование: extends Prado\Data\Common\TDbMetaData
Показать файл Открыть проект

Открытые методы

Метод Описание
findTableNames ( string $schema = '' ) : array Returns all table names in the database.
getDefaultSchema ( ) : string
setDefaultSchema ( $schema )

Защищенные методы

Метод Описание
assertIdentifier ( $name ) : string
createNewTableInfo ( $schemaName, $tableName ) : TOracleTableInfo
createTableInfo ( $table ) : TOracleTableInfo Get the column definitions for given table.
getConstraintKeys ( $schemaName, $tableName ) : array Gets the primary and foreign key column details for the given table.
getForeignKeys ( $src ) : array Gets foreign relationship constraint keys and table name
getIsView ( $schemaName, $tableName ) : boolean
getPrimaryKeys ( $src ) : array Gets the primary key field names
getSchemaTableName ( $table ) : array
getSequenceName ( $tableInfo, $src ) : string
getTableInfoClass ( ) : string
isForeignKeyColumn ( $columnId, $tableInfo ) : boolean
isPrecisionType ( $type ) : boolean
processColumn ( $tableInfo, $col )

Описание методов

assertIdentifier() защищенный метод

protected assertIdentifier ( $name ) : string
Результат string a valid identifier.

createNewTableInfo() защищенный метод

protected createNewTableInfo ( $schemaName, $tableName ) : TOracleTableInfo
Результат TOracleTableInfo

createTableInfo() защищенный метод

Get the column definitions for given table.
protected createTableInfo ( $table ) : TOracleTableInfo
Результат TOracleTableInfo table information.

findTableNames() публичный метод

Returns all table names in the database.
public findTableNames ( string $schema = '' ) : array
$schema string the schema of the tables. Defaults to empty string, meaning the current or default schema. If not empty, the returned table names will be prefixed with the schema name.
Результат array all table names in the database.

getConstraintKeys() защищенный метод

Gets the primary and foreign key column details for the given table.
protected getConstraintKeys ( $schemaName, $tableName ) : array
Результат array tuple ($primary, $foreign)

getDefaultSchema() публичный метод

public getDefaultSchema ( ) : string
Результат string default schema.

getForeignKeys() защищенный метод

Gets foreign relationship constraint keys and table name
protected getForeignKeys ( $src ) : array
Результат array foreign relationship table name and keys, null otherwise

getIsView() защищенный метод

protected getIsView ( $schemaName, $tableName ) : boolean
Результат boolean true if the table is a view.

getPrimaryKeys() защищенный метод

Gets the primary key field names
protected getPrimaryKeys ( $src ) : array
Результат array primary key field names.

getSchemaTableName() защищенный метод

protected getSchemaTableName ( $table ) : array
Результат array tuple as ($schemaName,$tableName)

getSequenceName() защищенный метод

protected getSequenceName ( $tableInfo, $src ) : string
Результат string serial name if found, null otherwise.

getTableInfoClass() защищенный метод

protected getTableInfoClass ( ) : string
Результат string TDbTableInfo class name.

isForeignKeyColumn() защищенный метод

protected isForeignKeyColumn ( $columnId, $tableInfo ) : boolean
Результат boolean true if column is a foreign key.

isPrecisionType() защищенный метод

protected isPrecisionType ( $type ) : boolean
Результат boolean true if column type if "numeric", "interval" or begins with "time".

processColumn() защищенный метод

protected processColumn ( $tableInfo, $col )

setDefaultSchema() публичный метод

public setDefaultSchema ( $schema )