|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.util.sequence.AbstractSequenceManager
org.apache.ojb.broker.util.sequence.SequenceManagerInMemoryImpl
Very fast in memory sequence manager implementation, only the first time an id was requested for a class, the manager query the database for the max id in requested column - all following request were performed in memory.
Limitations:Implementation configuration properties:
| Property Key | Property Values |
| seq.start | Set the start index of used sequences (e.g. set 100000, id generation starts with 100001). Default start index is 1. |
| autoNaming |
Default was 'true'. If set 'true' OJB try to build a
sequence name automatic if none found in field-descriptor
and set this generated name as sequence-name
in field-descriptor. If set 'false' OJB throws an exception
if none sequence name was found in field-descriptor.
|
| sequenceStart | Deprecated, use property 'seq.start'. Set the start index of used sequences (e.g. set 100000, id generation starts with 100001). Default start index is 1. |
SequenceManager,
SequenceManagerFactory,
SequenceManagerHelper| Field Summary |
| Fields inherited from class org.apache.ojb.broker.util.sequence.AbstractSequenceManager |
PROPERTY_AUTO_NAMING |
| Constructor Summary | |
SequenceManagerInMemoryImpl(PersistenceBroker broker)
|
|
| Methods inherited from class org.apache.ojb.broker.util.sequence.AbstractSequenceManager |
afterStore, calculateSequenceName, getBrokerForClass, getConfigurationProperties, getConfigurationProperty, getPlatform, getUniqueValue, setConfigurationProperties, setConfigurationProperty, setReferenceFKs, useAutoNaming |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequenceManagerInMemoryImpl(PersistenceBroker broker)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||