public class TransactionManager extends Object
| Constructor and Description |
|---|
TransactionManager(Authenticator auth) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Object locker)
Rolls back all changes sent in the name of 'locker' and unlocks the sysKeys
|
void |
clearCache(ItemPath itemPath,
String path) |
void |
close() |
void |
commit(Object locker)
Writes all pending changes to the backends.
|
void |
dumpPendingTransactions(int logLevel) |
C2KLocalObject |
get(ItemPath itemPath,
String path,
Object locker)
Public get method.
|
String[] |
getClusterContents(ItemPath itemPath,
String path) |
ClusterStorageManager |
getDb() |
boolean |
hasPendingTransactions() |
void |
put(ItemPath itemPath,
C2KLocalObject obj,
Object locker)
Public put method.
|
void |
remove(ItemPath itemPath,
String path,
Object locker)
Public delete method.
|
void |
removeCluster(ItemPath itemPath,
String path,
Object locker)
Removes all child objects from the given path
|
public TransactionManager(Authenticator auth) throws PersistencyException
PersistencyExceptionpublic boolean hasPendingTransactions()
public ClusterStorageManager getDb()
public void close()
public String[] getClusterContents(ItemPath itemPath, String path) throws PersistencyException
PersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path, Object locker) throws PersistencyException, ObjectNotFoundException
public void put(ItemPath itemPath, C2KLocalObject obj, Object locker) throws PersistencyException
PersistencyExceptionpublic void remove(ItemPath itemPath, String path, Object locker) throws PersistencyException
PersistencyExceptionpublic void removeCluster(ItemPath itemPath, String path, Object locker) throws PersistencyException
itemPath - - Item to delete frompath - - root path to deletelocker - - locking objectPersistencyException - - when deleting failspublic void commit(Object locker)
public void abort(Object locker)
public void dumpPendingTransactions(int logLevel)
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.