com.triactive.jdo.store
Class DatastoreOIDGenerator

java.lang.Object
  extended bycom.triactive.jdo.store.OIDGenerator
      extended bycom.triactive.jdo.store.DatastoreOIDGenerator

public class DatastoreOIDGenerator
extends OIDGenerator

An OID generator backed by the sequences in JDO_TABLE.

Author:
Mike Martin

Field Summary
 
Fields inherited from class com.triactive.jdo.store.OIDGenerator
classId, nextHiValue, nextLoValue
 
Constructor Summary
DatastoreOIDGenerator(int classId)
          Constructs a new datastore OID generator.
 
Method Summary
 OID next(StoreManager storeMgr)
          Generates the next unique OID value.
 
Methods inherited from class com.triactive.jdo.store.OIDGenerator
maximum, minimum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastoreOIDGenerator

public DatastoreOIDGenerator(int classId)
Constructs a new datastore OID generator.

Parameters:
classId - the class ID of OIDs to generate.
Method Detail

next

public OID next(StoreManager storeMgr)
Description copied from class: OIDGenerator
Generates the next unique OID value.

Specified by:
next in class OIDGenerator
Parameters:
storeMgr - the store manager to use for accessing datastore-based sequence(s), if necessary.
Returns:
the next unique OID


Copyright © 2001-2007 The TJDO Project All Rights Reserved.