public class KeyManager
extends java.lang.Object
| Constructor and Description |
|---|
KeyManager(java.lang.String compId)
Constructs a
SDOKeyManager for the component caller. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getNextKey(java.lang.String sdoClassName)
Gets the next key for a table given the SDO class name representing it.
|
java.lang.Long |
getNextKeyForTable(java.lang.String tableName)
Gets the next key for a table.
|
void |
initializeKeys()
Initializes the keys in the memory.
|
public KeyManager(java.lang.String compId)
throws KeyManagerException
SDOKeyManager for the component caller.
It is for IBM internal use only.
Use KeyManagerFactory instead.compId - The component ID.KeyManagerExceptionKeyManagerFactory#getInstance(String)}public java.lang.Long getNextKey(java.lang.String sdoClassName)
throws KeyManagerException
sdoClassName - The class name of the SDO data object.Long object (default).KeyManagerExceptionpublic java.lang.Long getNextKeyForTable(java.lang.String tableName)
throws KeyManagerException
tableName - The table name.Long object.KeyManagerExceptionpublic void initializeKeys()