public interface DBPersistent extends java.io.Serializable, DeepCloneable, Dumpable
Modifier and Type | Method and Description |
---|---|
void |
dbDelete()
Deletes the representing record from the database.
|
void |
dbInsert()
Inserts the object as a record into the database.
|
void |
dbLoad(DBLoadMonitor monitor,
SqlCondition condition)
Reads a set of objects from from the database according to the given condition.
|
void |
dbLoad(DBLoadMonitor monitor,
SqlCondition condition,
SqlOrder order)
Reads a set of objects from from the database according to the given condition and order.
|
void |
dbRehash()
Re-reads the object state from the database.
|
void |
dbSearch(DBLoadMonitor monitor,
SqlCondition condition)
Reads a set of objects from from the database according to the given condition.
|
void |
dbSearch(DBLoadMonitor monitor,
SqlCondition condition,
SqlOrder order)
Reads a set of objects from from the database according to the given condition and order.
|
<R extends DBRecord> |
dbSearch(SqlCondition condition)
Reads a set of objects from from the database according to the given condition.
|
<R extends DBRecord> |
dbSearch(SqlCondition condition,
SqlOrder order)
Reads a set of objects from from the database according to
the given condition and order.
|
<R extends DBRecord> |
dbSelect(SqlCondition condition)
Reads a set of objects from from the database according to the given condition.
|
<R extends DBRecord> |
dbSelect(SqlCondition condition,
SqlOrder order)
Reads a set of objects from from the database according to the given condition and order.
|
void |
dbUpdate()
Writes the object's current state to the database.
|
boolean |
exists()
Checks whether a matching object can be found in the database
by performing a primary key lookup in the according table(s).
|
int |
getPrimaryKeyCount()
Returns the number of fields that compose the primary key
|
java.lang.String[] |
getPrimaryKeyValues()
Returns the values of the primary key as a String array.
|
java.lang.String |
getRecordName()
Returns a unique name for this record, which is usually the tablename.
|
boolean |
hasPrimaryKey()
Tells whether this object has a primary key at all
|
boolean |
isDirty()
Tells whether this object is in sync with the database.
|
void |
setPrimaryKeyValues(java.lang.String... pkValues)
Sets the values of the primary key.
|
deepClone
toDumpString, toDumpString, toString, toString
boolean hasPrimaryKey()
int getPrimaryKeyCount()
java.lang.String[] getPrimaryKeyValues()
void setPrimaryKeyValues(java.lang.String... pkValues)
void dbUpdate() throws java.lang.Exception
java.lang.Exception
isDirty()
void dbInsert() throws java.lang.Exception
java.lang.Exception
void dbDelete() throws java.lang.Exception
java.lang.Exception
isDirty()
void dbRehash() throws java.lang.Exception
java.lang.Exception
isDirty()
<R extends DBRecord> R[] dbSelect(SqlCondition condition) throws java.lang.Exception
java.lang.Exception
<R extends DBRecord> R[] dbSelect(SqlCondition condition, SqlOrder order) throws java.lang.Exception
java.lang.Exception
void dbLoad(DBLoadMonitor monitor, SqlCondition condition) throws java.lang.Exception
java.lang.Exception
void dbLoad(DBLoadMonitor monitor, SqlCondition condition, SqlOrder order) throws java.lang.Exception
java.lang.Exception
<R extends DBRecord> R[] dbSearch(SqlCondition condition) throws java.lang.Exception
java.lang.Exception
<R extends DBRecord> R[] dbSearch(SqlCondition condition, SqlOrder order) throws java.lang.Exception
java.lang.Exception
void dbSearch(DBLoadMonitor monitor, SqlCondition condition) throws java.lang.Exception
java.lang.Exception
void dbSearch(DBLoadMonitor monitor, SqlCondition condition, SqlOrder order) throws java.lang.Exception
java.lang.Exception
boolean exists()
boolean isDirty()
java.lang.String getRecordName()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.