org.jpox.store.poid
Class AbstractUUIDPoidGenerator
java.lang.Object
org.jpox.store.poid.AbstractPoidGenerator
org.jpox.store.poid.AbstractUIDPoidGenerator
org.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. |
Method Summary |
protected short |
getCount()
Simple counter for identities. |
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 |
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
AbstractUUIDPoidGenerator
public AbstractUUIDPoidGenerator(java.lang.String name,
java.util.Properties props)
- Constructor.
- Parameters:
name
- Symbolic name for this generatorprops
- Properties controlling its behaviour
getCount
protected short getCount()
- Simple counter for identities.
- Returns:
- The next count value
Copyright © -2007 . All Rights Reserved.