PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TDbTableInfo

TDbTableInfo class describes the meta data of a database table.

TComponent
Extended by TDbTableInfo

Direct known subclasses

TMssqlTableInfo, TMysqlTableInfo, TPgsqlTableInfo, TSqliteTableInfo
Package: System\Data\Common
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/Common/TDbTableInfo.php
Methods summary
public
# __construct( array $tableInfo = array(), mixed $primary = array(), mixed $foreign = array() )

Sets the database table meta data information.

Sets the database table meta data information.

Parameters

$tableInfo
array
table column information.
$primary
$foreign

Overrides

TComponent::__construct()
public TDbCommandBuilder
# createCommandBuilder( TDbConnection $connection )

Parameters

$connection
TDbConnection
database connection.

Returns

TDbCommandBuilder
new command builder
protected mixed
# getInfo( string $name, mixed $default = null )

Parameters

$name
string
information array key name
$default
mixed
default value if information array value is null

Returns

mixed
information array value.
protected
# setInfo( string $name, mixed $value )

Parameters

$name
string
information array key name
$value
mixed
new information array value.
public string
# getTableName( )

Returns

string
name of the table this column belongs to.
public string
# getTableFullName( )

Returns

string
full name of the table, database dependent.
public boolean
# getIsView( )

Returns

boolean
whether the table is a view, default is false.
public TMap
# getColumns( )

Returns

TMap
TDbTableColumn column meta data.
public TDbTableColumn
# getColumn( string $name )

Parameters

$name
string
column id

Returns

TDbTableColumn
column information.
public array
# getColumnNames( )

Returns

array
table column names (identifier quoted)
public string[]
# getPrimaryKeys( )

Returns

string[]
names of primary key columns.
public array
# getForeignKeys( )

Returns

array
tuples of foreign table and column name.
public array
# getLowerCaseColumnNames( )

Returns

array
lowercased column key names mapped to normal column ids.
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO