| java.lang.Object org.apache.ojb.broker.util.sequence.AbstractSequenceManager org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
SequenceManagerHighLowImpl | public class SequenceManagerHighLowImpl extends AbstractSequenceManager (Code) | | High/Low sequence manager implementation generates unique and continuous
id's (during runtime) by using sequences to avoid database access.
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:
- Do NOT use this implementation in managed environment or
any comparable system where any connection was associated
with the running transaction.
See Also: org.apache.ojb.broker.util.sequence.SequenceManager See Also: org.apache.ojb.broker.util.sequence.SequenceManagerFactory See Also: org.apache.ojb.broker.util.sequence.SequenceManagerHelper author: Armin Waibel version: $Id: SequenceManagerHighLowImpl.java,v 1.29.2.5 2005/12/21 22:28:41 tomdz Exp $ |
PROPERTY_GLOBAL_SEQUENCE_ID | final public static String PROPERTY_GLOBAL_SEQUENCE_ID(Code) | | |
PROPERTY_GLOBAL_SEQUENCE_START | final public static String PROPERTY_GLOBAL_SEQUENCE_START(Code) | | |
PROPERTY_GRAB_SIZE | final public static String PROPERTY_GRAB_SIZE(Code) | | |
attempts | protected int attempts(Code) | | |
grabSize | protected int grabSize(Code) | | |
sequenceStart | protected long sequenceStart(Code) | | |
sequencesDBMap | protected static Map sequencesDBMap(Code) | | |
useGlobalSequenceIdentities | protected boolean useGlobalSequenceIdentities(Code) | | |
removeSequence | protected void removeSequence(String sequenceName)(Code) | | Remove the sequence for given sequence name.
Parameters: sequenceName - Name of the sequence to remove. |
|
|