|
||||||||||
| 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 method is called after the object was written to the persistent storage. |
java.lang.Object |
getUniqueValue(FieldDescriptor field)
This method is called to get an unique value before the object is written to persistent storage. |
| Method Detail |
public java.lang.Object getUniqueValue(FieldDescriptor field)
throws SequenceManagerException
field.
The returned object is unique accross all tables of "extent" classes the
field belongs to.
SequenceManagerException
public void afterStore(JdbcAccess dbAccess,
ClassDescriptor cld,
java.lang.Object obj)
throws SequenceManagerException
dbAccess - Current used JdbcAccess instancecld - Descriptor for specified objectobj - The object to associate with identity value
SequenceManagerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||