|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
In order be used with in the RDB supporting framework, all of the following methods must be implemented. Fortunately, most of the work has been done in the RDBPersistentAdapter class, and very little is actually needed to be done by the programmer. The reason that there are some many methods in this class is that it provides a great amount of flexibility in creating the persistence layer. The default behavior will be sufficient for most, however, it may be necessary to change any of the following methods.
Methods inherited from interface com.objectwave.persist.Persistence |
delete, getAdapter, getBrokerName, insert, isRetrievedFromDatabase, lock, save, setBrokerName, setRetrievedFromDatabase, unlock, usesAdapter |
Methods inherited from interface com.objectwave.transactionalSupport.TransactionalObjectIF |
getObjectEditor, isDirty, isTransient, setAsTransient, setObjectEditor, update |
Method Detail |
public void addCollectionQuery(java.lang.String name, SQLQuery q)
name
- q
- public boolean containsAnyChanges()
public AttributeTypeColumn foreignKeyBackRef(RDBPersistence joinObj)
joinObj
-
public AttributeTypeColumn[] getAttributeDescriptions()
public boolean getBrokerGeneratedPrimaryKeys()
public java.util.Vector getClassDescription()
public AttributeTypeColumn[] getCollectionDescriptions()
public java.util.Hashtable getCollectionQueries()
public AttributeTypeColumn[] getCollectionTypes(RDBPersistence pRef)
pRef
-
public TransactionalObjectIF getDomainObject()
public AttributeTypeColumn[] getForeignKeyDescriptions()
public AttributeTypeColumn[] getPrimaryKeyDescriptions()
public AttributeTypeColumn[] getForeignKeyTypes(RDBPersistence refObj)
refObj
-
public Persistence getInstance(RDBPersistence refObj, java.lang.String classValue) throws java.lang.InstantiationException, java.lang.IllegalAccessException
refObj
- classValue
-
java.lang.InstantiationException
java.lang.IllegalAccessException
public AttributeTypeColumn[] getInstanceLinkDescriptions()
public AttributeTypeColumn[] getInstanceLinkTypes(RDBPersistence pRef)
pRef
-
public Persistence getPersistentObject()
public AttributeTypeColumn getPrimaryAttributeDescription()
public java.lang.String getPrimaryKeyColumn()
public java.lang.Object getPrimaryKeyField()
Persistence
getPrimaryKeyField
in interface Persistence
public java.lang.Object[] getPrimaryKeyFields()
Persistence
getPrimaryKeyFields
in interface Persistence
public int getRecordOffset()
public java.lang.String getTableName(java.lang.Object refObj)
refObj
-
public AttributeTypeColumn instanceLinkJoinColumn(RDBPersistence joinObj)
joinObj
-
public AttributeTypeColumn foreignKeyJoinColumn(RDBPersistence joinObj, java.lang.reflect.Field specifiedField)
joinObj
- specifiedField
-
public boolean isDeleteThis()
public boolean isProxy()
public void markForDelete() throws QueryException
QueryException
public void setCollectionQueries(java.util.Hashtable t)
t
- The new CollectionQueries valuepublic void setPrimaryKeyField(java.lang.Object i)
Persistence
setPrimaryKeyField
in interface Persistence
i
- The new PrimaryKeyField valuepublic void setProxy(boolean b)
b
- The new Proxy valuepublic void setRecordOffset(int i)
i
- The new RecordOffset valuepublic boolean skipScalarCheck()
public void setSkipScalarCheck(boolean b)
b
- The new SkipScalarCheck valuepublic AttributeTypeColumn findColumnMap(java.lang.String path) throws NotFoundException
path
-
NotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |