|
|||||||||
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 objects.
There are some standard sequence manager implementations in
this package.
SequenceManager objects are obtained from a Factory called
SequenceManagerFactory
.
This Factory can be configured to provide instances of user defined
implementors of this interface.
SequenceManagers should be aware of extents, 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 * * @param cld * @param 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 |