ZMObject
└─ZMCreoleDatabase
public class ZMCreoleDatabase
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMCreoleDatabase(array conf) Create a new instance. |
|
| Method Summary | |
|---|---|
| void | {@inheritDoc} |
| void | commit() {@inheritDoc} |
| void | createModel(mixed table, mixed model, mixed mapping) {@inheritDoc} |
| void | {@inheritDoc} |
| protected long | getExecutionTime(string start) Get the elapsed time since $start. |
| void | getMetaData(mixed table) {@inheritDoc} |
| void | {@inheritDoc} |
| void | getStats() {@inheritDoc} |
| void | loadModel(mixed table, mixed key, mixed modelClass, mixed mapping) {@inheritDoc} |
| protected A | prepareStatement(string sql, mixed args, array mapping) Create a prepared statement. |
| void | query(mixed sql, mixed args, mixed modelClass) {@inheritDoc} |
| void | querySingle(mixed sql, mixed args, mixed modelClass) {@inheritDoc} |
| void | removeModel(mixed table, mixed model, mixed mapping) {@inheritDoc} |
| void | rollback() {@inheritDoc} |
| protected mixed | rs2model(string modelClass, ResultSet rs, array mapping) Create model and populate using the given rs and field map. |
| void | update(mixed sql, mixed data) {@inheritDoc} |
| void | updateModel(mixed table, mixed model, mixed mapping) {@inheritDoc} |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMCreoleDatabase(array conf)
Create a new instance.
public void beginTransaction()
public void commit()
public void createModel(mixed table, mixed model, mixed mapping)
public void getConfig()
protected long getExecutionTime(string start)
Get the elapsed time since $start.
public void getMetaData(mixed table)
public void getResource()
public void getStats()
public void loadModel(mixed table, mixed key, mixed modelClass, mixed mapping)
protected A prepareStatement(string sql, mixed args, array mapping)
Create a prepared statement.
PreparedStatement or null;public void query(mixed sql, mixed args, mixed modelClass)
public void querySingle(mixed sql, mixed args, mixed modelClass)
public void removeModel(mixed table, mixed model, mixed mapping)
public void rollback()
protected mixed rs2model(string modelClass, ResultSet rs, array mapping)
Create model and populate using the given rs and field map.
null).public void update(mixed sql, mixed data)
public void updateModel(mixed table, mixed model, mixed mapping)
Implementation of the ZenMagick database layer using Creole.