public interface SequenceManager
SequenceManagerFactory
.
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.Modifier and Type | Method and Description |
---|---|
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.
|
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
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 valueSequenceManagerException
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30