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. This modus is NOT extent aware!
Default was 'false'.
|
- Version:
- $Id: SequenceManagerHighLowImpl.java,v 1.14 2003/01/12 10:03:32 arminw Exp $
| Methods inherited from class org.apache.ojb.broker.util.sequence.AbstractSequenceManager |
afterStore, getBrokerForClass, getConfigurationProperties, getConfigurationProperty, getPlatform, getUniqueLong, getUniqueObject, getUniqueString, setConfigurationProperties, setConfigurationProperty, setReferenceFKs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private org.apache.ojb.broker.util.logging.Logger log
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
sequencesMap
private static java.util.Map sequencesMap
useGlobalSequenceIdentities
protected boolean useGlobalSequenceIdentities
grabSize
protected int grabSize
SequenceManagerHighLowImpl
public SequenceManagerHighLowImpl(org.apache.ojb.broker.PersistenceBroker broker)
getUniqueId
public int getUniqueId(org.apache.ojb.broker.metadata.FieldDescriptor field)
throws SequenceManagerException
- Gets a new uniqueId for the given Class and fieldname