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()
Closing will abort all transactions
|
void |
commit(Object locker)
Writes all pending changes to the backends.
|
void |
dumpPendingTransactions(int logLevel) |
String |
executeQuery(Query query) |
C2KLocalObject |
get(ItemPath itemPath,
String path,
Object locker)
Public get method.
|
String[] |
getClusterContents(ItemPath itemPath,
ClusterType type)
Retrieves the ids of the root level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
ClusterType type,
Object locker)
Retrieves the ids of the root level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
String path)
Retrieves the ids of the next level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
String path,
Object locker)
Retrieves the ids of the next level of a cluster
Checks the transaction table first to see if the caller has uncommitted changes
|
ClusterStorageManager |
getDb() |
boolean |
hasPendingTransactions() |
void |
postBoostrap()
Propagate Bootstrap has finished hook to the storages
|
void |
postConnect()
Propagate Gateway connect has finished hook to the storages
|
void |
postStartServer()
Propagate start server has finished hook to the storages
|
void |
put(ItemPath itemPath,
C2KLocalObject obj,
Object locker) |
void |
remove(ItemPath itemPath,
String path,
Object locker)
Uses the put method, with null as the object value.
|
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 executeQuery(Query query) throws PersistencyException
query - PersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, ClusterType type) throws PersistencyException
itemPath - the itemtype - the type of the clusterPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, ClusterType type, Object locker) throws PersistencyException
itemPath - the itemtype - the type of the clusterlocker - the transaction keyPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path) throws PersistencyException
itemPath - the itempath - the cluster pathPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path, Object locker) throws PersistencyException
itemPath - the itempath - the cluster pathlocker - the transaction keyPersistencyExceptionpublic 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)
locker - transaction lockerpublic void abort(Object locker)
locker - transaction lockerpublic void dumpPendingTransactions(int logLevel)
public void postConnect()
throws PersistencyException
PersistencyExceptionpublic void postBoostrap()
throws PersistencyException
PersistencyExceptionpublic void postStartServer()
throws PersistencyException
PersistencyExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.