public class SequenceManagerHighLowImpl extends AbstractSequenceManager
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. |
grabSize | Integer entry determines the number of IDs allocated within the H/L sequence manager implementation. Default was '20'. |
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.
|
globalSequenceId | Deprecated! If set 'true' implementation use global unique id's for all fields. Default was 'false'. |
globalSequenceStart | Deprecated, use property 'seq.start'. Set the start index of used global id generation (e.g. set 100000, id generation starts with 100001) |
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. |
Limitations:
SequenceManager
,
SequenceManagerFactory
,
SequenceManagerHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_GLOBAL_SEQUENCE_ID |
static java.lang.String |
PROPERTY_GLOBAL_SEQUENCE_START |
static java.lang.String |
PROPERTY_GRAB_SIZE |
PROPERTY_AUTO_NAMING
Constructor and Description |
---|
SequenceManagerHighLowImpl(PersistenceBroker broker) |
afterStore, calculateSequenceName, getBrokerForClass, getConfigurationProperties, getConfigurationProperty, getPlatform, getUniqueValue, setConfigurationProperties, setConfigurationProperty, setReferenceFKs, useAutoNaming
public static final java.lang.String PROPERTY_GRAB_SIZE
public static final java.lang.String PROPERTY_GLOBAL_SEQUENCE_ID
public static final java.lang.String PROPERTY_GLOBAL_SEQUENCE_START
public SequenceManagerHighLowImpl(PersistenceBroker broker)
(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