org.jpox.store.rdbms.poid
Class DatastoreUUIDHexPoidGenerator

java.lang.Object
  extended by org.jpox.store.poid.AbstractPoidGenerator
      extended by org.jpox.store.poid.AbstractDatastorePoidGenerator
          extended by org.jpox.store.rdbms.poid.AbstractRDBMSPoidGenerator
              extended by org.jpox.store.rdbms.poid.DatastoreUUIDHexPoidGenerator
All Implemented Interfaces:
org.jpox.store.poid.PoidGenerator

public final class DatastoreUUIDHexPoidGenerator
extends AbstractRDBMSPoidGenerator

Generator for POIDs using datastore-based UUID generation.

Version:
$Revision: 1.11 $

Field Summary
protected static org.jpox.util.Localiser LOCALISER_RDBMS
           
 
Fields inherited from class org.jpox.store.rdbms.poid.AbstractRDBMSPoidGenerator
connection
 
Fields inherited from class org.jpox.store.poid.AbstractDatastorePoidGenerator
connectionProvider, storeMgr
 
Fields inherited from class org.jpox.store.poid.AbstractPoidGenerator
allocationSize, initialValue, LOCALISER, name, poidBlock, properties
 
Constructor Summary
DatastoreUUIDHexPoidGenerator(java.lang.String name, java.util.Properties props)
          Constructor.
 
Method Summary
static java.lang.Class getStorageClass()
          Accessor for the storage class for POIDs generated with this generator.
protected  org.jpox.store.poid.PoidBlock reserveBlock(long size)
          Reserve a block of ids.
 
Methods inherited from class org.jpox.store.rdbms.poid.AbstractRDBMSPoidGenerator
obtainPoidBlock, requiresConnection
 
Methods inherited from class org.jpox.store.poid.AbstractDatastorePoidGenerator
setConnectionProvider, setStoreManager
 
Methods inherited from class org.jpox.store.poid.AbstractPoidGenerator
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainPoidBlock, requiresRepository, reserveBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER_RDBMS

protected static final org.jpox.util.Localiser LOCALISER_RDBMS
Constructor Detail

DatastoreUUIDHexPoidGenerator

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

Parameters:
name - Symbolic name for this generator
props - Properties defining the behaviour of this generator
Method Detail

getStorageClass

public static java.lang.Class getStorageClass()
Accessor for the storage class for POIDs generated with this generator.

Returns:
Storage class (in this case String.class)

reserveBlock

protected org.jpox.store.poid.PoidBlock reserveBlock(long size)
Reserve a block of ids.

Specified by:
reserveBlock in class org.jpox.store.poid.AbstractPoidGenerator
Parameters:
size - Block size
Returns:
The reserved block


Copyright © -2008 . All Rights Reserved.