public class TransactionManager extends Object
| Constructor and Description |
|---|
TransactionManager(ClusterStorage s)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(TransactionKey transactionKey)
Deprecated.
Rolls back all changes sent in the name of 'transactionKey' and unlocks the sysKeys
|
void |
commit(TransactionKey transactionKey)
Deprecated.
Writes all pending changes to the backends.
|
void |
dumpPendingTransactions(int logLevel)
Deprecated.
|
String |
executeQuery(Query query,
TransactionKey transactionKey)
Deprecated.
|
C2KLocalObject |
get(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Deprecated.
Public get method.
|
String[] |
getClusterContents(ItemPath itemPath,
ClusterType type)
Deprecated.
Retrieves the ids of the root level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
ClusterType type,
TransactionKey transactionKey)
Deprecated.
Retrieves the ids of the root level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
String path)
Deprecated.
Retrieves the ids of the next level of a cluster
|
String[] |
getClusterContents(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Deprecated.
Retrieves the ids of the next level of a cluster
Checks the transaction table first to see if the caller has uncommitted changes
|
int |
getLastIntegerId(ItemPath itemPath,
String path)
Deprecated.
|
boolean |
hasPendingTransactions()
Deprecated.
|
void |
postBoostrap()
Deprecated.
Propagate Bootstrap has finished hook to the storages
|
void |
postConnect()
Deprecated.
Propagate Gateway connect has finished hook to the storages
|
void |
postStartServer()
Deprecated.
Propagate start server has finished hook to the storages
|
void |
put(ItemPath itemPath,
C2KLocalObject obj,
TransactionKey transactionKey)
Deprecated.
|
void |
remove(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Deprecated.
Uses the put method, with null as the object value.
|
void |
removeCluster(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Deprecated.
Removes all child objects from the given path
|
public TransactionManager(ClusterStorage s) throws PersistencyException
PersistencyExceptionpublic boolean hasPendingTransactions()
public String executeQuery(Query query, TransactionKey transactionKey) 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, TransactionKey transactionKey) throws PersistencyException
itemPath - the itemtype - the type of the clustertransactionKey - the transaction keyPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path) throws PersistencyException
itemPath - the itempath - the cluster pathPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException
itemPath - the itempath - the cluster pathtransactionKey - the transaction keyPersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException, ObjectNotFoundException
public void put(ItemPath itemPath, C2KLocalObject obj, TransactionKey transactionKey) throws PersistencyException
PersistencyExceptionpublic void remove(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException
PersistencyExceptionpublic void removeCluster(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException
itemPath - - Item to delete frompath - - root path to deletetransactionKey - - locking objectPersistencyException - - when deleting failspublic void commit(TransactionKey transactionKey) throws PersistencyException
transactionKey - transaction transactionKeyPersistencyExceptionpublic void abort(TransactionKey transactionKey)
transactionKey - transaction transactionKeypublic void dumpPendingTransactions(int logLevel)
public void postConnect()
throws PersistencyException
PersistencyExceptionpublic void postBoostrap()
throws PersistencyException
PersistencyExceptionpublic void postStartServer()
throws PersistencyException
PersistencyExceptionpublic int getLastIntegerId(ItemPath itemPath, String path) throws PersistencyException
PersistencyExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.