com.triactive.jdo.store
Class NondurableOIDGenerator

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

public class NondurableOIDGenerator
extends OIDGenerator

An OID generator backed solely by memory. This generator always starts at hi=0,lo=0 and increments by one.

Author:
Mike Martin

Field Summary
 
Fields inherited from class com.triactive.jdo.store.OIDGenerator
classId, nextHiValue, nextLoValue
 
Constructor Summary
NondurableOIDGenerator(int classId)
          Constructs a new non-durable 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

NondurableOIDGenerator

public NondurableOIDGenerator(int classId)
Constructs a new non-durable 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.