org.jpox.store.poid
Class UUIDHexPoidGenerator

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

public class UUIDHexPoidGenerator
extends AbstractUUIDPoidGenerator

Poid generator for a UUID hexadecimal format. Results in Strings of length 32 characters, containing the IP address of the local machine as per the JDO2 spec section 18.6.1.

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.jpox.store.poid.AbstractUUIDPoidGenerator
counter, IP_ADDRESS, JVM_UNIQUE
 
Fields inherited from class org.jpox.store.poid.AbstractPoidGenerator
defaultBlockSize, LOCALISER, name, poidBlock, properties
 
Constructor Summary
UUIDHexPoidGenerator(java.lang.String name, java.util.Properties props)
          Constructor.
 
Method Summary
protected  java.lang.String getIdentifier()
          Create an identifier with the form "IIIIIIIIJJJJJJJJHHHHLLLLLLLLCCCC".
 
Methods inherited from class org.jpox.store.poid.AbstractUUIDPoidGenerator
getCount
 
Methods inherited from class org.jpox.store.poid.AbstractUIDPoidGenerator
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
 

Constructor Detail

UUIDHexPoidGenerator

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

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

getIdentifier

protected java.lang.String getIdentifier()
Create an identifier with the form "IIIIIIIIJJJJJJJJHHHHLLLLLLLLCCCC". Where IIIIIIII is the IP address, JJJJJJJJ is something unique across JVMs, HHHH is the High Time, LLLLLLLL is the low time, and CCCC is a count.

Specified by:
getIdentifier in class AbstractUIDPoidGenerator
Returns:
The identifier


Copyright © -2007 . All Rights Reserved.