|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A persistent object can either implement all of the necessary support for persistence, or have an adapter who does it. If an adapter performs the actions, most likely all of the methods in this interface will be delegated to the adapter.
com.objectwave.transactionalSupport.TransactionalObject
Method Summary | |
void |
delete()
|
Persistence |
getAdapter()
Gets the Adapter attribute of the Persistence object |
java.lang.String |
getBrokerName()
Broker names allow an application to have multiple brokers. |
java.lang.Object |
getPrimaryKeyField()
Gets the PrimaryKeyField attribute of the Persistence object |
java.lang.Object[] |
getPrimaryKeyFields()
Gets the PrimaryKeyFields attribute of the Persistence object |
void |
insert()
Force this object to be a part of the changedObjects list. |
boolean |
isRetrievedFromDatabase()
Gets the RetrievedFromDatabase attribute of the Persistence object |
boolean |
lock(boolean wait)
Support explicit locking and unlocking. |
void |
save()
|
void |
setBrokerName(java.lang.String str)
Sets the BrokerName attribute of the Persistence object |
void |
setPrimaryKeyField(java.lang.Object val)
Sets the PrimaryKeyField attribute of the Persistence object |
void |
setRetrievedFromDatabase(boolean b)
Sets the RetrievedFromDatabase attribute of the Persistence object |
void |
unlock()
Support explicit locking and unlocking. |
boolean |
usesAdapter()
|
Methods inherited from interface com.objectwave.transactionalSupport.TransactionalObjectIF |
getObjectEditor, isDirty, isTransient, setAsTransient, setObjectEditor, update |
Method Detail |
public void delete() throws QueryException
QueryException
public Persistence getAdapter()
public java.lang.String getBrokerName()
public void setBrokerName(java.lang.String str)
str
- The new BrokerName valuepublic java.lang.Object getPrimaryKeyField()
public java.lang.Object[] getPrimaryKeyFields()
public void insert() throws QueryException
QueryException
public boolean isRetrievedFromDatabase()
public boolean lock(boolean wait)
wait
- true if the caller wants the suspend the thread until
the object can be locked.
public void save() throws QueryException
QueryException
public void setPrimaryKeyField(java.lang.Object val)
val
- The new PrimaryKeyField valuepublic void setRetrievedFromDatabase(boolean b)
b
- The new RetrievedFromDatabase valuepublic void unlock()
public boolean usesAdapter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |