org.jpox.store.poid
Class AbstractUUIDPoidGenerator

java.lang.Object
  extended byorg.jpox.store.poid.AbstractPoidGenerator
      extended byorg.jpox.store.poid.AbstractUIDPoidGenerator
          extended byorg.jpox.store.poid.AbstractUUIDPoidGenerator
All Implemented Interfaces:
PoidGenerator, javax.jdo.datastore.Sequence
Direct Known Subclasses:
UUIDHexPoidGenerator, UUIDStringPoidGenerator

public abstract class AbstractUUIDPoidGenerator
extends AbstractUIDPoidGenerator

Poid generator for a UUID format. To be extended by implementations giving the UUID in particular forms.

Version:
$Revision: 1.3 $

Field Summary
protected static short counter
           
protected static int IP_ADDRESS
          IP Address of local machine.
protected static int JVM_UNIQUE
          Unique value across JVMs on this machine.
 
Fields inherited from class org.jpox.store.poid.AbstractPoidGenerator
defaultBlockSize, LOCALISER, name, poidBlock, properties
 
Constructor Summary
AbstractUUIDPoidGenerator(java.lang.String name, java.util.Properties props)
          Constructor.
 
Method Summary
protected  short getCount()
          Simple counter for identities.
 
Methods inherited from class org.jpox.store.poid.AbstractUIDPoidGenerator
getIdentifier, reserveBlock
 
Methods inherited from class org.jpox.store.poid.AbstractPoidGenerator
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainPoidBlock, obtainPoidBlock, requiresRepository, reserveBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IP_ADDRESS

protected static final int IP_ADDRESS
IP Address of local machine.


JVM_UNIQUE

protected static final int JVM_UNIQUE
Unique value across JVMs on this machine.


counter

protected static short counter
Constructor Detail

AbstractUUIDPoidGenerator

public AbstractUUIDPoidGenerator(java.lang.String name,
                                 java.util.Properties props)
Constructor.

Parameters:
name - Symbolic name for this generator
props - Properties controlling its behaviour
Method Detail

getCount

protected short getCount()
Simple counter for identities.

Returns:
The next count value


Copyright © -2007 . All Rights Reserved.