ojb.broker
Class SequenceManager

java.lang.Object
  |
  +--ojb.broker.SequenceManager

public class SequenceManager
extends java.lang.Object

A simple SequenceManager. This class is responsible for creating new unique ID's for primary columns containing integer values. The SequenceManager is aware of extends, that is: if you ask for an uid for an Interface with several implementor classes, or a baseclass with several subclasses the returned uid will unique accross all tables representing objects of the extent in question.


Constructor Summary
SequenceManager(PersistenceBrokerImpl broker)
          Public constructor
 
Method Summary
 int getUniqueId(java.lang.Class clazz, java.lang.String fieldName)
          returns a unique int for class clazz and field fieldName. the returned uid is unique accross all tables in the extent of clazz.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceManager

public SequenceManager(PersistenceBrokerImpl broker)
Public constructor
Method Detail

getUniqueId

public int getUniqueId(java.lang.Class clazz,
                       java.lang.String fieldName)
returns a unique int for class clazz and field fieldName. the returned uid is unique accross all tables in the extent of clazz.


Authors: Thomas Mahler, David Dixon-Peugh. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.5.155, 2001-08-17