org.datanucleus.store.rdbms.valuegenerator
Class DatastoreUUIDHexGenerator

java.lang.Object
  extended by org.datanucleus.store.valuegenerator.AbstractGenerator
      extended by org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
          extended by org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator
              extended by org.datanucleus.store.rdbms.valuegenerator.DatastoreUUIDHexGenerator
All Implemented Interfaces:
org.datanucleus.store.valuegenerator.ValueGenerator

public final class DatastoreUUIDHexGenerator
extends AbstractRDBMSGenerator

Generator for values using datastore-based UUID generation.


Field Summary
protected static org.datanucleus.util.Localiser LOCALISER_RDBMS
           
 
Fields inherited from class org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator
connection
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
connectionProvider, storeMgr
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists
 
Constructor Summary
DatastoreUUIDHexGenerator(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.datanucleus.store.valuegenerator.ValueGenerationBlock reserveBlock(long size)
          Reserve a block of ids.
 
Methods inherited from class org.datanucleus.store.rdbms.valuegenerator.AbstractRDBMSGenerator
obtainGenerationBlock, requiresConnection
 
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
setConnectionProvider, setStoreManager
 
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainGenerationBlock, repositoryExists, 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.datanucleus.util.Localiser LOCALISER_RDBMS
Constructor Detail

DatastoreUUIDHexGenerator

public DatastoreUUIDHexGenerator(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.datanucleus.store.valuegenerator.ValueGenerationBlock reserveBlock(long size)
Reserve a block of ids.

Specified by:
reserveBlock in class org.datanucleus.store.valuegenerator.AbstractGenerator
Parameters:
size - Block size
Returns:
The reserved block


Copyright © 2009. All Rights Reserved.