|
||||||||||
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 Persistence
obj
- The new PrimaryKeyField valuepublic void setBrokerName(java.lang.String aValue)
setBrokerName
in interface Persistence
aValue
- The new BrokerName valuepublic void setAsTransient(boolean value)
setAsTransient
in interface TransactionalObjectIF
value
- The new AsTransient valuepublic void setRetrievedFromDatabase(boolean b)
setRetrievedFromDatabase
in interface Persistence
b
- The new RetrievedFromDatabase valuepublic void setObjectEditor(ObjectEditingView view)
setObjectEditor
in interface TransactionalObjectIF
view
- The new ObjectEditor valuepublic Persistence getAdapter()
getAdapter
in interface Persistence
public java.lang.String getBrokerName()
getBrokerName
in interface Persistence
public ObjectEditingView getObjectEditor()
getObjectEditor
in interface TransactionalObjectIF
public java.lang.Object getPrimaryKeyField()
getPrimaryKeyField
in interface Persistence
public java.lang.Object[] getPrimaryKeyFields()
getPrimaryKeyFields
in interface Persistence
public boolean isDirty()
isDirty
in interface TransactionalObjectIF
public boolean isRetrievedFromDatabase()
isRetrievedFromDatabase
in interface Persistence
public boolean isTransient()
isTransient
in interface TransactionalObjectIF
public abstract java.lang.String getTableName()
public void delete() throws QueryException
delete
in interface Persistence
QueryException
public abstract java.util.Vector initDescriptor()
public void insert() throws QueryException
Persistence
insert
in interface Persistence
QueryException
public boolean lock(boolean wait)
lock
in interface Persistence
wait
- boolean
public void markForDelete() throws QueryException
QueryException
public void save() throws QueryException
save
in interface Persistence
QueryException
public void unlock()
unlock
in interface Persistence
public void update(boolean get, java.lang.Object[] data, java.lang.reflect.Field[] fields)
update
in interface TransactionalObjectIF
get
- data
- fields
- public boolean usesAdapter()
usesAdapter
in interface Persistence
protected RDBPersistentAdapter createAdapter(Persistence persistentObject)
persistentObject
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |