| biz.hammurapi.sql.IDatabaseObject
All known Subclasses: biz.hammurapi.sql.DatabaseObject,
IDatabaseObject | public interface IDatabaseObject (Code) | | Interface of DatabaseObject. This interface is used for creating dynamic proxies backed
up with database obects.
author: Pavel Vlasov |
Method Summary | |
abstract public void | clear() Sets all columns to default values and clears
modified and deleted flags. | abstract public void | copy(DatabaseObject source) | abstract public int | delete(SQLProcessor processor, String tableName) Deletes row in a table by primary key. | abstract public void | fromDom(Element holder) | abstract public void | fromDom(Element holder, Properties nameMap) | abstract public Object | getColumnAttribute(String columnName, Object key) | abstract public int | insert(SQLProcessor processor, String tableName) | abstract public boolean | isDeleted() | abstract public boolean | isModified() | abstract public Object | removeColumnAttribute(String columnName, Object key) | abstract public void | setColumnAttribute(String columnName, Object key, Object value) | abstract public void | setOriginal() Sets current values as original values in primary key columns. | abstract public void | toDom(Element holder, Properties nameMap, boolean originals) Serializes to DOM. | abstract public int | update(SQLProcessor processor, String tableName) |
clear | abstract public void clear()(Code) | | Sets all columns to default values and clears
modified and deleted flags.
|
copy | abstract public void copy(DatabaseObject source)(Code) | | Copies values from source object to this object
Parameters: source - |
delete | abstract public int delete(SQLProcessor processor, String tableName) throws SQLException(Code) | | Deletes row in a table by primary key.
Parameters: processor - SQLProcessor Parameters: tableName - Target table Number of updates throws: SQLException - |
isDeleted | abstract public boolean isDeleted()(Code) | | isDeleted flag is cleared when primary key columns are modified
true if delete() method was executed. |
isModified | abstract public boolean isModified()(Code) | | true if object was modified since last database operation. |
setOriginal | abstract public void setOriginal()(Code) | | Sets current values as original values in primary key columns.
|
toDom | abstract public void toDom(Element holder, Properties nameMap, boolean originals)(Code) | | Serializes to DOM.
Parameters: holder - Holder element Parameters: nameMap - Name map Parameters: originals - Output original values if any. |
update | abstract public int update(SQLProcessor processor, String tableName) throws SQLException(Code) | | Updates row in a table by primary key
Parameters: processor - SQLProcessor Parameters: tableName - Target table Number of updates throws: SQLException - |
|
|