|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.util.sequence.SequenceManagerMySQLImpl
SequenceManagerNativeImpl
instead
MySQL SequenceManager for use with auto_increment columns.
WARNING: Not thoroughly tested, use at own risk. ;-)
Native key generation is not extent aware if the extent persistent
objects using different database tables.
Implementation configuration properties:
Property Key | Property Values |
none |
Constructor Summary | |
SequenceManagerMySQLImpl(PersistenceBroker broker)
Deprecated. |
Method Summary | |
void |
afterStore(org.apache.ojb.broker.accesslayer.JdbcAccess dbAccess,
ClassDescriptor cld,
java.lang.Object obj)
Deprecated. This is to support auto_increment columns on the db side * |
int |
getUniqueId(FieldDescriptor field)
Deprecated. returns a unique int for class clazz and field fieldName. |
java.lang.Object |
getUniqueValue(FieldDescriptor field)
Deprecated. Returns a unique object for the given field attribute. |
void |
setReferenceFKs(java.lang.Object obj,
ClassDescriptor cld)
Deprecated. This is used for database auto_increment/identity columns to set the reference foreign keys after they've been assigned by the db. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequenceManagerMySQLImpl(PersistenceBroker broker)
Method Detail |
public int getUniqueId(FieldDescriptor field) throws SequenceManagerException
SequenceManagerException
public void afterStore(org.apache.ojb.broker.accesslayer.JdbcAccess dbAccess, ClassDescriptor cld, java.lang.Object obj) throws SequenceManagerException
SequenceManager
* high/low and other implementations may ignore this method. *
* Travis Reeder * * @param cld * @param obj
afterStore
in interface SequenceManager
SequenceManagerException
public void setReferenceFKs(java.lang.Object obj, ClassDescriptor cld) throws SequenceManagerException
SequenceManager
This can be ignored by high/low implementations
Travis Reeder
setReferenceFKs
in interface SequenceManager
obj
- cld
-
SequenceManagerException
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.
getUniqueValue
in interface SequenceManager
SequenceManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |