com.metamatrix.common.id.dbid.spi.jdbc
Class PersistentIDController
java.lang.Object
com.metamatrix.common.id.dbid.spi.jdbc.PersistentIDController
- All Implemented Interfaces:
- DBIDController
public class PersistentIDController
- extends java.lang.Object
- implements DBIDController
Field Summary |
static java.lang.String |
SERVICE_ID
|
static java.lang.String |
VM_ID
|
Method Summary |
long |
getUniqueID(java.lang.String context)
|
long |
getUniqueID(java.lang.String context,
boolean enableRollOver)
|
void |
setContextBlockSize(java.lang.String context,
long size)
|
void |
shutDown()
Call when the DBIDGenerator is no longer needed and the database connections
can be closed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VM_ID
public static final java.lang.String VM_ID
- See Also:
- Constant Field Values
SERVICE_ID
public static final java.lang.String SERVICE_ID
- See Also:
- Constant Field Values
PersistentIDController
public PersistentIDController()
throws ManagedConnectionException
- Throws:
ManagedConnectionException
setContextBlockSize
public void setContextBlockSize(java.lang.String context,
long size)
- Specified by:
setContextBlockSize
in interface DBIDController
getUniqueID
public long getUniqueID(java.lang.String context)
throws DBIDGeneratorException
- Specified by:
getUniqueID
in interface DBIDController
- Throws:
DBIDGeneratorException
getUniqueID
public long getUniqueID(java.lang.String context,
boolean enableRollOver)
throws DBIDGeneratorException
- Specified by:
getUniqueID
in interface DBIDController
- Throws:
DBIDGeneratorException
shutDown
public void shutDown()
- Description copied from interface:
DBIDController
- Call when the DBIDGenerator is no longer needed and the database connections
can be closed.
- Specified by:
shutDown
in interface DBIDController
Copyright © 2009. All Rights Reserved.