class DatabaseMap
DatabaseMap is used to model a database.
GENERAL NOTE
The propel.map classes are abstract building-block classes for modeling the database at runtime. These classes are similar (a lite version) to the propel.engine.database.model classes, which are build-time modeling classes. These classes in themselves do not do any database metadata lookups.
Methods
__construct(string $name)
Constructor. |
||
string |
getName()
Get the name of this database. |
|
TableMap |
addTable(string $tableName)
Add a new table to the database by name. |
|
addTableObject(TableMap $table)
Add a new table object to the database. |
||
TableMap |
addTableFromMapClass(string $tableMapClass)
Add a new table to the database, using the tablemap class name. |
|
boolean |
hasTable(string $name)
Does this database contain this specific table? |
|
TableMap |
getTable(string $name)
Get a TableMap for the table by name. |
|
array |
getTables()
Get a TableMap[] of all of the tables in the database. |
|
ColumnMap |
getColumn($qualifiedColumnName $qualifiedColumnName)
Get a ColumnMap for the column by name. |
|
boolean |
containsTable(string $name)
Does this database contain this specific table? |
|
getTableByPhpName($phpName)
|
||
DBAdapter |
getDBAdapter()
Convenience method to get the DBAdapter registered with Propel for this database. |
Details
at line 43
public
__construct(string $name)
Constructor.
at line 53
public string
getName()
Get the name of this database.
at line 65
public TableMap
addTable(string $tableName)
Add a new table to the database by name.
at line 77
public
addTableObject(TableMap $table)
Add a new table object to the database.
at line 91
public TableMap
addTableFromMapClass(string $tableMapClass)
Add a new table to the database, using the tablemap class name.
at line 110
public boolean
hasTable(string $name)
Does this database contain this specific table?
at line 123
public TableMap
getTable(string $name)
Get a TableMap for the table by name.
at line 137
public array
getTables()
Get a TableMap[] of all of the tables in the database.
at line 151
public ColumnMap
getColumn($qualifiedColumnName $qualifiedColumnName)
Get a ColumnMap for the column by name.
Name must be fully qualified, e.g. book.AUTHOR_ID
at line 169
public boolean
containsTable(string $name)
Does this database contain this specific table?
at line 174
public
getTableByPhpName($phpName)
at line 196
public DBAdapter
getDBAdapter()
Convenience method to get the DBAdapter registered with Propel for this database.