Class SequenceManagerNextValImpl

  extended by
      extended by
All Implemented Interfaces:
Direct Known Subclasses:

public class SequenceManagerNextValImpl
extends AbstractSequenceManager

This SequenceManager implementation uses database sequence key generation (e.g supported by Oracle, SAP DB, PostgreSQL, ...). This class is responsible for creating new unique ID's.
It is possible to define a sequence-name field-descriptor attribute in the repository file. If such an attribute was not found, the implementation build an extent aware sequence name by its own.
Keep in mind when define a sequence name, that you are responsible to be aware of extents, that is: if you ask for an uid for an interface with several implementor classes, or a baseclass with several subclasses the returned uid have to be unique accross all tables representing objects of the extent in question. Thus you have to use the same sequence-name for all extents.

Implementation configuration properties:

Property Key Property Values
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, ditto OJB does NOT try to create a database sequence entry when for given sequence name no database sequence could be found.


$Id: 365232 2005-12-21 22:36:07Z tomdz $
Edson Carlos Ericksson Richter, Rajeev Kaul, Thomas Mahler, Armin Waibel

Field Summary
Fields inherited from class
Constructor Summary
SequenceManagerNextValImpl(PersistenceBroker broker)
Method Summary
Methods inherited from class
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

Constructor Detail


public SequenceManagerNextValImpl(PersistenceBroker broker)

(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
Version: 1.0.4, 2005-12-30