Class TransactionManager
java.lang.Object
org.cristalise.kernel.persistency.TransactionManager
Deprecated.
- not used anymore it is kept to know old functionality
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(TransactionKey transactionKey) Deprecated.Rolls back all changes sent in the name of 'transactionKey' and unlocks the sysKeysvoidcommit(TransactionKey transactionKey) Deprecated.Writes all pending changes to the backends.voiddumpPendingTransactions(int logLevel) Deprecated.executeQuery(Query query, TransactionKey transactionKey) Deprecated.get(ItemPath itemPath, String path, TransactionKey transactionKey) Deprecated.Public get method.String[]getClusterContents(ItemPath itemPath, String path) Deprecated.Retrieves the ids of the next level of a clusterString[]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 changesString[]getClusterContents(ItemPath itemPath, ClusterType type) Deprecated.Retrieves the ids of the root level of a clusterString[]getClusterContents(ItemPath itemPath, ClusterType type, TransactionKey transactionKey) Deprecated.Retrieves the ids of the root level of a clusterintgetLastIntegerId(ItemPath itemPath, String path) Deprecated.booleanDeprecated.voidDeprecated.Propagate Bootstrap has finished hook to the storagesvoidDeprecated.Propagate Gateway connect has finished hook to the storagesvoidDeprecated.Propagate start server has finished hook to the storagesvoidput(ItemPath itemPath, C2KLocalObject obj, TransactionKey transactionKey) Deprecated.voidremove(ItemPath itemPath, String path, TransactionKey transactionKey) Deprecated.Uses the put method, with null as the object value.voidremoveCluster(ItemPath itemPath, String path, TransactionKey transactionKey) Deprecated.Removes all child objects from the given path
-
Constructor Details
-
TransactionManager
Deprecated.- Throws:
PersistencyException
-
-
Method Details
-
hasPendingTransactions
public boolean hasPendingTransactions()Deprecated. -
executeQuery
Deprecated.- Parameters:
query-- Returns:
- Throws:
PersistencyException
-
getClusterContents
Deprecated.Retrieves the ids of the root level of a cluster- Parameters:
itemPath- the itemtype- the type of the cluster- Returns:
- array of ids
- Throws:
PersistencyException
-
getClusterContents
public String[] getClusterContents(ItemPath itemPath, ClusterType type, TransactionKey transactionKey) throws PersistencyException Deprecated.Retrieves the ids of the root level of a cluster- Parameters:
itemPath- the itemtype- the type of the clustertransactionKey- the transaction key- Returns:
- array of ids
- Throws:
PersistencyException
-
getClusterContents
Deprecated.Retrieves the ids of the next level of a cluster- Parameters:
itemPath- the itempath- the cluster path- Returns:
- array of ids
- Throws:
PersistencyException
-
getClusterContents
public String[] getClusterContents(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException Deprecated.Retrieves the ids of the next level of a cluster Checks the transaction table first to see if the caller has uncommitted changes- Parameters:
itemPath- the itempath- the cluster pathtransactionKey- the transaction key- Returns:
- array of ids
- Throws:
PersistencyException
-
get
public C2KLocalObject get(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException, ObjectNotFoundException Deprecated.Public get method. Required a 'transactionKey' object for a transaction key. Checks the transaction table first to see if the caller has uncommitted changes -
put
public void put(ItemPath itemPath, C2KLocalObject obj, TransactionKey transactionKey) throws PersistencyException Deprecated.- Throws:
PersistencyException
-
remove
public void remove(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException Deprecated.Uses the put method, with null as the object value.- Throws:
PersistencyException
-
removeCluster
public void removeCluster(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException Deprecated.Removes all child objects from the given path- Parameters:
itemPath- - Item to delete frompath- - root path to deletetransactionKey- - locking object- Throws:
PersistencyException- - when deleting fails
-
commit
Deprecated.Writes all pending changes to the backends.- Parameters:
transactionKey- transaction transactionKey- Throws:
PersistencyException
-
abort
Deprecated.Rolls back all changes sent in the name of 'transactionKey' and unlocks the sysKeys- Parameters:
transactionKey- transaction transactionKey
-
dumpPendingTransactions
public void dumpPendingTransactions(int logLevel) Deprecated. -
postConnect
Deprecated.Propagate Gateway connect has finished hook to the storages- Throws:
PersistencyException
-
postBoostrap
Deprecated.Propagate Bootstrap has finished hook to the storages- Throws:
PersistencyException
-
postStartServer
Deprecated.Propagate start server has finished hook to the storages- Throws:
PersistencyException
-
getLastIntegerId
Deprecated.- Throws:
PersistencyException
-