org.jpox.store.rdbms.poid
Class DatastoreUUIDHexPoidGenerator
java.lang.Object
org.jpox.store.poid.AbstractPoidGenerator
org.jpox.store.poid.AbstractDatastorePoidGenerator
org.jpox.store.rdbms.poid.AbstractRDBMSPoidGenerator
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 $
| 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 |
|
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.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 |
LOCALISER_RDBMS
protected static final org.jpox.util.Localiser LOCALISER_RDBMS
DatastoreUUIDHexPoidGenerator
public DatastoreUUIDHexPoidGenerator(java.lang.String name,
java.util.Properties props)
- Constructor.
- Parameters:
name - Symbolic name for this generatorprops - Properties defining the behaviour of this generator
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.