|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SequenceManagers are responsible for creating new unique ID's - unique accross all "extent" object declarations in OJB metadata. There are some standard sequence manager implementations in this package.
SequenceManager objects are obtained from a factory class calledSequenceManagerFactory
.
This Factory can be configured to provide instances of user defined
implementors of this interface.
NOTE: SequenceManagers should be aware of "extents" ("extent" is an OJB inheritance feature),
that is: if you ask for an uid for an Interface (more exact for one implementor class)
with several implementor classes, or a baseclass with several subclasses the returned uid
should be unique accross all tables representing objects of the extent in question.
Method Summary | |
void |
afterStore(JdbcAccess dbAccess,
ClassDescriptor cld,
java.lang.Object obj)
This is to support auto_increment columns on the db side |
java.lang.Object |
getUniqueValue(FieldDescriptor field)
Returns a unique object for the given field attribute. |
void |
setReferenceFKs(java.lang.Object obj,
ClassDescriptor cld)
This is used for database auto_increment/identity columns to set the reference foreign keys after they've been assigned by the db. |
Method Detail |
public java.lang.Object getUniqueValue(FieldDescriptor field) throws SequenceManagerException
field
.
The returned object is unique accross all tables in the extent
of class the field belongs to.
SequenceManagerException
public void afterStore(JdbcAccess dbAccess, ClassDescriptor cld, java.lang.Object obj) throws SequenceManagerException
high/low and other implementations may ignore this method.
Travis Reeder
cld
- obj
-
SequenceManagerException
public void setReferenceFKs(java.lang.Object obj, ClassDescriptor cld) throws SequenceManagerException
This can be ignored by high/low implementations
Travis Reeder
obj
- cld
-
SequenceManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |