org.apache.ojb.broker.util.sequence
Class SequenceManagerSeqHiLoImpl
java.lang.Object
org.apache.ojb.broker.util.sequence.AbstractSequenceManager
org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl
org.apache.ojb.broker.util.sequence.SequenceManagerSeqHiLoImpl
- All Implemented Interfaces:
- SequenceManager
public class SequenceManagerSeqHiLoImpl
- extends SequenceManagerNextValImpl
A High/Low database sequence based implementation.
See SequenceManagerNextValImpl
for more information.
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'.
|
| 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 when other applications use the database based sequence ditto
- Version:
- $Id: SequenceManagerSeqHiLoImpl.java,v 1.1 2007-08-24 22:17:29 ewestfal Exp $
- Author:
- Armin Waibel
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_GRAB_SIZE
public static final String PROPERTY_GRAB_SIZE
- See Also:
- Constant Field Values
grabSize
protected int grabSize
SequenceManagerSeqHiLoImpl
public SequenceManagerSeqHiLoImpl(PersistenceBroker broker)
getUniqueLong
protected long getUniqueLong(FieldDescriptor field)
throws SequenceManagerException
- Description copied from class:
SequenceManagerNextValImpl
- returns a unique long value for class clazz and field fieldName.
the returned number is unique accross all tables in the extent of clazz.
- Overrides:
getUniqueLong in class SequenceManagerNextValImpl
- Throws:
SequenceManagerException
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.