- 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
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
for all extents.
Implementation configuration properties:
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
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: SequenceManagerNextValImpl.java 365232 2005-12-21 22:36:07Z tomdz $
- Edson Carlos Ericksson Richter, Rajeev Kaul, Thomas Mahler, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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