DBTable Class Reference
[Dynamic query builder]

Inheritance diagram for DBTable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($name)
 getColumns ()
 addUniques ()
 
Returns:
DBTable

 getUniques ()
 addColumn (DBColumn $column)
 
Exceptions:
WrongArgumentException 

 getColumnByName ($name)
 
Exceptions:
MissingElementException 

 dropColumnByName ($name)
 
Returns:
DBTable

 getName ()
 getOrder ()
 toDialectString (Dialect $dialect)

Static Public Member Functions

static create ($name)
 
Returns:
DBTable

static findDifferences (Dialect $dialect, DBTable $source, DBTable $target)

Private Attributes

 $name = null
 $columns = array()
 $order = array()
 $uniques = array()


Detailed Description

Definition at line 16 of file DBTable.class.php.


Constructor & Destructor Documentation

DBTable::__construct ( name  ) 

Definition at line 33 of file DBTable.class.php.

References $name.


Member Function Documentation

static DBTable::create ( name  )  [static]

Returns:
DBTable

Definition at line 28 of file DBTable.class.php.

References $name.

Referenced by SchemaBuilder::buildRelations(), and SchemaBuilder::buildTable().

DBTable::getColumns (  ) 

Definition at line 38 of file DBTable.class.php.

Referenced by findDifferences().

DBTable::addUniques (  ) 

Returns:
DBTable

Definition at line 46 of file DBTable.class.php.

References $name, $uniques, getColumnByName(), and Assert::isTrue().

Here is the call graph for this function:

DBTable::getUniques (  ) 

Definition at line 64 of file DBTable.class.php.

DBTable::addColumn ( DBColumn column  ) 

Exceptions:
WrongArgumentException 

Returns:
DBTable

Definition at line 73 of file DBTable.class.php.

References $name, DBColumn::getName(), Assert::isFalse(), and DBColumn::setTable().

Here is the call graph for this function:

DBTable::getColumnByName ( name  ) 

Exceptions:
MissingElementException 

Returns:
DBColumn

Definition at line 93 of file DBTable.class.php.

References $name.

Referenced by addUniques().

DBTable::dropColumnByName ( name  ) 

Returns:
DBTable

Definition at line 106 of file DBTable.class.php.

References $name.

DBTable::getName (  ) 

Definition at line 119 of file DBTable.class.php.

Referenced by DBSchema::addTable(), and findDifferences().

DBTable::getOrder (  ) 

Definition at line 124 of file DBTable.class.php.

DBTable::toDialectString ( Dialect dialect  ) 

Implements DialectString.

Definition at line 129 of file DBTable.class.php.

References OSQL::createTable().

Here is the call graph for this function:

static DBTable::findDifferences ( Dialect dialect,
DBTable source,
DBTable target 
) [static]

Definition at line 135 of file DBTable.class.php.

References $name, $out, getColumns(), and getName().

Referenced by MetaConfiguration::buildSchemaChanges().

Here is the call graph for this function:


Member Data Documentation

DBTable::$name = null [private]

Definition at line 18 of file DBTable.class.php.

Referenced by __construct(), addColumn(), addUniques(), create(), dropColumnByName(), findDifferences(), and getColumnByName().

DBTable::$columns = array() [private]

Definition at line 20 of file DBTable.class.php.

DBTable::$order = array() [private]

Definition at line 21 of file DBTable.class.php.

DBTable::$uniques = array() [private]

Definition at line 23 of file DBTable.class.php.

Referenced by addUniques().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:15 2007 for onPHP by  doxygen 1.5.4