org.apache.ojb.broker.util.sequence
Class SequenceManagerSeqHiLoImpl

java.lang.Object
  extended by org.apache.ojb.broker.util.sequence.AbstractSequenceManager
      extended by org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl
          extended by 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:



Version:
$Id: SequenceManagerSeqHiLoImpl.java 365232 2005-12-21 22:36:07Z tomdz $
Author:
Armin Waibel

Field Summary
static java.lang.String PROPERTY_GRAB_SIZE
           
 
Fields inherited from class org.apache.ojb.broker.util.sequence.AbstractSequenceManager
PROPERTY_AUTO_NAMING
 
Constructor Summary
SequenceManagerSeqHiLoImpl(PersistenceBroker broker)
           
 
Method Summary
 
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
 

Field Detail

PROPERTY_GRAB_SIZE

public static final java.lang.String PROPERTY_GRAB_SIZE
See Also:
Constant Field Values
Constructor Detail

SequenceManagerSeqHiLoImpl

public SequenceManagerSeqHiLoImpl(PersistenceBroker broker)


(C) 2002 - 2006 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