public abstract class TransactionalClusterStorageBase extends ClusterStorage
NONE, READ, READWRITE, WRITE| Constructor and Description |
|---|
TransactionalClusterStorageBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(TransactionKey transactionKey)
Rolls back all changes sent in the name of 'transactionKey' and unlocks the sysKeys
|
void |
begin(TransactionKey transactionKey) |
void |
commit(TransactionKey transactionKey)
Writes all pending changes to the backends.
|
void |
delete(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Uses the put method, with null as the object value.
|
void |
dumpPendingTransactions(int logLevel) |
C2KLocalObject |
getUncommitted(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Public get method.
|
String[] |
getUncommittedClusterContents(ItemPath itemPath,
String path,
TransactionKey transactionKey)
Retrieves the ids of the next level of a cluster
Checks the transaction table first to see if the caller has uncommitted changes
|
void |
put(ItemPath itemPath,
C2KLocalObject obj,
TransactionKey transactionKey)
Stores a CRISTAL local object.
|
checkQuerySupport, close, executeQuery, get, getClusterContents, getClusterContents, getClusters, getClusterType, getId, getLastIntegerId, getName, getPath, open, postBoostrap, postConnect, postStartServer, queryClusterSupportpublic TransactionalClusterStorageBase()
throws PersistencyException
PersistencyExceptionpublic String[] getUncommittedClusterContents(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException
itemPath - the itempath - the cluster pathtransactionKey - the transaction keyPersistencyExceptionpublic C2KLocalObject getUncommitted(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException, ObjectNotFoundException
public void put(ItemPath itemPath, C2KLocalObject obj, TransactionKey transactionKey) throws PersistencyException
ClusterStorageput in class ClusterStorageitemPath - The Item that the object will be stored underobj - The C2KLocalObject to storetransactionKey - the key of the transaction, cannot be nullPersistencyException - When storage failspublic void delete(ItemPath itemPath, String path, TransactionKey transactionKey) throws PersistencyException
delete in class ClusterStorageitemPath - The containing Itempath - The path of the object to be removedtransactionKey - the key of the transaction, cannot be nullPersistencyException - When deletion fails or is not allowedpublic void begin(TransactionKey transactionKey) throws PersistencyException
begin in class ClusterStoragePersistencyExceptionpublic void commit(TransactionKey transactionKey) throws PersistencyException
commit in class ClusterStoragetransactionKey - transaction transactionKeyPersistencyExceptionpublic void abort(TransactionKey transactionKey)
abort in class ClusterStoragetransactionKey - transaction transactionKeypublic void dumpPendingTransactions(int logLevel)
Copyright © 1997–2022 CRISTAL-iSE. All rights reserved.