|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.DbObject
org.tentackle.db.PartialDbObject
public abstract class PartialDbObject
Partial implementation of a DbObject that is an abstract
super class in a table-per-class mapping.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.tentackle.db.DbObject |
|---|
DbObject.CopyAllToDbLogger, DbObject.IdComparator<T extends DbObject>, DbObject.NameComparator<T extends DbObject>, DbObject.NameIdComparator<T extends DbObject> |
| Field Summary |
|---|
| Fields inherited from class org.tentackle.db.DbObject |
|---|
BEGIN, COMMIT, DELETE, DELETEALL, FIELD_ID, FIELD_SERIAL, FIELD_TABLESERIAL, idComparator, INSERT, lazyMethodInterval, nameComparator, nameIdComparator, TX_DELETE_LIST, TX_DELETE_MISSING_IN_LIST, TX_DELETE_OBJECT, TX_DUMMY_UPDATE, TX_INSERT_OBJECT, TX_INSERT_PLAIN, TX_SAVE, TX_SAVE_LIST, TX_UPDATE_OBJECT, TX_UPDATE_PLAIN, TX_UPDATE_SERIAL, TX_UPDATE_SERIAL_AND_TABLESERIAL, TX_UPDATE_TABLESERIAL, UPDATE |
| Constructor Summary | |
|---|---|
PartialDbObject(DbObject master)
Creates a partial object for a given master object. |
|
| Method Summary | |
|---|---|
String |
getClassBaseName()
Gets the basename of the class of this object. The basename is the class name without the package name. |
String |
getClassName()
Gets the class name of this object. This is equivalent to getClass().getName() except for PartialDbObjects! |
Db |
getDb()
Get the logical db connection for this object. |
long |
getId()
Gets the object ID. |
boolean |
isEntity()
Returns whether instances of this class exist as database entities. |
boolean |
isNew()
Checks whether this object is already persistant in the db or only residing in memory. |
boolean |
isPartial()
Returns true if object is only a partial implementation. |
void |
setDb(Db db)
Sets the logical db connection for this object. |
void |
setId(long id)
Sets the unique ID of this object. |
void |
setSerial(long serial)
Sets the serial number (modification count). |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartialDbObject(DbObject master)
master - the master object| Method Detail |
|---|
public boolean isPartial()
Overridden to return true. Notice that for hierarchies of depth > 2 the DbGetFields wurblet must be invoked with the "--nameonly" option.
isPartial in class DbObjectpublic boolean isEntity()
Overridden to return false. Partial object are not entities by definition.
isEntity in class DbObjectpublic Db getDb()
DbObject
getDb in class DbObjectpublic void setDb(Db db)
DbObject
setDb in class DbObjectdb - the db connectionpublic String getClassBaseName()
DbObject
getClassBaseName in class DbObjectpublic long getId()
DbObject
getId in class DbObjectpublic void setId(long id)
DbObjectDbObject.isModified().
setId in class DbObjectid - the object idpublic void setSerial(long serial)
DbObjectDbObject.isModified().
setSerial in class DbObjectserial - the serial numberpublic boolean isNew()
DbObject
isNew in class DbObjectpublic String getClassName()
DbObject
getClassName in class DbObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||