org.apache.ojb.broker.util.sequence
Class SequenceManagerHighLowImpl
java.lang.Object
org.apache.ojb.broker.util.sequence.AbstractSequenceManager
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl
- All Implemented Interfaces:
- SequenceManager
- public class SequenceManagerHighLowImpl
- extends AbstractSequenceManager
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 |
grabSize |
Integer entry determines the
number of IDs allocated within the
H/L sequence manager implementation.
Default was '20'.
|
globalSequenceId |
If set 'true' implementation use global unique
id's for all fields. Default was 'false'.
|
globalSequenceStart |
Deprecated, use property 'sequenceStart'. Set the start index of used global id
generation (e.g. set 100000, id generation starts with 100001)
|
sequenceStart |
Set the start index of used sequences (e.g. set 100000, id generation starts with 100001).
Default start index is 0.
|
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.
|
Limitations:
- Do NOT use this implementation in managed environment or
any comparable system where any connection was associated
with the running transaction.
- Version:
- $Id: SequenceManagerHighLowImpl.java,v 1.29.2.1 2004/10/04 15:00:13 arminw Exp $
- Author:
- Armin Waibel
- See Also:
SequenceManager
,
SequenceManagerFactory
,
SequenceManagerHelper
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 |
PROPERTY_GRAB_SIZE
public static final java.lang.String PROPERTY_GRAB_SIZE
- See Also:
- Constant Field Values
PROPERTY_GLOBAL_SEQUENCE_ID
public static final java.lang.String PROPERTY_GLOBAL_SEQUENCE_ID
- See Also:
- Constant Field Values
PROPERTY_GLOBAL_SEQUENCE_START
public static final java.lang.String PROPERTY_GLOBAL_SEQUENCE_START
- See Also:
- Constant Field Values
PROPERTY_SEQUENCE_START
public static final java.lang.String PROPERTY_SEQUENCE_START
- See Also:
- Constant Field Values
SequenceManagerHighLowImpl
public SequenceManagerHighLowImpl(PersistenceBroker broker)
(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2