|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.transactionalSupport.test.DomainObject
A possible root Business object for an application.
| Field Summary | |
RDBPersistentAdapter |
adapt
|
ObjectEditingView |
editor
|
| Constructor Summary | |
DomainObject()
|
|
| Method Summary | |
protected RDBPersistentAdapter |
createAdapter(Persistence persistentObject)
Create the new ObjectEditingView instance that is to be our 'adapter' to the persistent object. |
void |
delete()
|
Persistence |
getAdapter()
Gets the Adapter attribute of the DomainObject object |
java.lang.String |
getBrokerName()
Support for individual instances residing in their own brokers. |
ObjectEditingView |
getObjectEditor()
Gets the ObjectEditor attribute of the DomainObject object |
java.lang.Object |
getPrimaryKeyField()
Gets the PrimaryKeyField attribute of the DomainObject object |
java.lang.Object[] |
getPrimaryKeyFields()
Gets the PrimaryKeyFields attribute of the DomainObject object |
abstract java.lang.String |
getTableName()
Gets the TableName attribute of the DomainObject object |
abstract java.util.Vector |
initDescriptor()
|
void |
insert()
Force this object to be a part of the changedObjects list. |
boolean |
isDirty()
Gets the Dirty attribute of the DomainObject object |
boolean |
isRetrievedFromDatabase()
Gets the RetrievedFromDatabase attribute of the DomainObject object |
boolean |
isTransient()
Gets the Transient attribute of the DomainObject object |
boolean |
lock(boolean wait)
This method was created in VisualAge. |
void |
markForDelete()
Mark this object to be deleted in this transaction. |
void |
save()
|
void |
setAsTransient(boolean value)
Sets the AsTransient attribute of the DomainObject object |
void |
setBrokerName(java.lang.String aValue)
Support for individual instances residing in their own brokers. |
void |
setObjectEditor(ObjectEditingView view)
Subclasses will override this method to return an appropriate instance of a RDBPersistentAdapter; This method will always instantiate the inner adapter found in DomainObject's class definition. |
void |
setPrimaryKeyField(java.lang.Object obj)
Sets the PrimaryKeyField attribute of the DomainObject object |
void |
setRetrievedFromDatabase(boolean b)
Sets the ObjectIdentifier attribute of the DomainObject object public void setObjectIdentifier(Integer aValue) { editor.set(_objectIdentifier, aValue, objectIdentifier); } Sets the PrimaryKeyField attribute of the DomainObject object public void setPrimaryKeyField(Object obj) { getAdapter().setPrimaryKeyField(obj); } Sets the RetrievedFromDatabase attribute of the DomainObject object |
void |
unlock()
This method was created in VisualAge. |
void |
update(boolean get,
java.lang.Object[] data,
java.lang.reflect.Field[] fields)
Method no longer does anything since setAccessible solves our need for this behavior. |
boolean |
usesAdapter()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public transient ObjectEditingView editor
public transient RDBPersistentAdapter adapt
| Constructor Detail |
public DomainObject()
| Method Detail |
public void setPrimaryKeyField(java.lang.Object obj)
setPrimaryKeyField in interface Persistenceobj - The new PrimaryKeyField valuepublic void setBrokerName(java.lang.String aValue)
setBrokerName in interface PersistenceaValue - The new BrokerName valuepublic void setAsTransient(boolean value)
setAsTransient in interface TransactionalObjectIFvalue - The new AsTransient valuepublic void setRetrievedFromDatabase(boolean b)
setRetrievedFromDatabase in interface Persistenceb - The new RetrievedFromDatabase valuepublic void setObjectEditor(ObjectEditingView view)
setObjectEditor in interface TransactionalObjectIFview - The new ObjectEditor valuepublic Persistence getAdapter()
getAdapter in interface Persistencepublic java.lang.String getBrokerName()
getBrokerName in interface Persistencepublic ObjectEditingView getObjectEditor()
getObjectEditor in interface TransactionalObjectIFpublic java.lang.Object getPrimaryKeyField()
getPrimaryKeyField in interface Persistencepublic java.lang.Object[] getPrimaryKeyFields()
getPrimaryKeyFields in interface Persistencepublic boolean isDirty()
isDirty in interface TransactionalObjectIFpublic boolean isRetrievedFromDatabase()
isRetrievedFromDatabase in interface Persistencepublic boolean isTransient()
isTransient in interface TransactionalObjectIFpublic abstract java.lang.String getTableName()
public void delete()
throws QueryException
delete in interface PersistenceQueryExceptionpublic abstract java.util.Vector initDescriptor()
public void insert()
throws QueryException
Persistence
insert in interface PersistenceQueryExceptionpublic boolean lock(boolean wait)
lock in interface Persistencewait - boolean
public void markForDelete()
throws QueryException
QueryException
public void save()
throws QueryException
save in interface PersistenceQueryExceptionpublic void unlock()
unlock in interface Persistence
public void update(boolean get,
java.lang.Object[] data,
java.lang.reflect.Field[] fields)
update in interface TransactionalObjectIFget - data - fields - public boolean usesAdapter()
usesAdapter in interface Persistenceprotected RDBPersistentAdapter createAdapter(Persistence persistentObject)
persistentObject -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||