|
|||||||||
| Home >> All >> ojb >> broker >> util >> [ sequence overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
ojb.broker.util.sequence
Interface SequenceManager

- All Known Implementing Classes:
- SequenceManagerDefaultImpl
- public interface SequenceManager
SequenceManagers are responsible for creating new unique ID's for primary columns containing integer or String values. There is a simple Default implementation SequenceManagerDefaultImpl that provides rudimentary unique numbering. SequenceManager Objects are obtained from a Factory SequenceManagerFactory. This Factory can be configured to provide instances of user defined implementors of this interface. SequenceManagers should be aware of extends, that is: if you ask for an uid for an Interface 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 | |
int |
getUniqueId(java.lang.Class clazz,
java.lang.String fieldName)
returns a unique int for class clazz and field fieldName. |
long |
getUniqueLong(java.lang.Class clazz,
java.lang.String fieldName)
returns a unique long value for class clazz and field fieldName. |
java.lang.Object |
getUniqueObject(java.lang.Class clazz,
java.lang.String fieldName)
returns a unique Object for class clazz and field fieldName. |
java.lang.String |
getUniqueString(java.lang.Class clazz,
java.lang.String fieldName)
returns a unique String for class clazz and field fieldName. |
| Method Detail |
getUniqueId
public int getUniqueId(java.lang.Class clazz, java.lang.String fieldName)
- returns a unique int for class clazz and field fieldName.
the returned uid is unique accross all tables in the extent of clazz.
getUniqueLong
public long getUniqueLong(java.lang.Class clazz, java.lang.String fieldName)
- returns a unique long value for class clazz and field fieldName.
the returned number is unique accross all tables in the extent of clazz.
getUniqueString
public java.lang.String getUniqueString(java.lang.Class clazz, java.lang.String fieldName)
- returns a unique String for class clazz and field fieldName.
the returned uid is unique accross all tables in the extent of clazz.
getUniqueObject
public java.lang.Object getUniqueObject(java.lang.Class clazz, java.lang.String fieldName)
- returns a unique Object for class clazz and field fieldName.
the returned Object is unique accross all tables in the extent of clazz.
|
|||||||||
| Home >> All >> ojb >> broker >> util >> [ sequence overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC