public class RWTransaction extends AbstractTransaction
| Modifier and Type | Field and Description |
|---|---|
protected Set<PersistentIF> |
chgcre |
protected Set<PersistentIF> |
chgdel |
protected Set<PersistentIF> |
chgdty |
protected boolean |
flushing |
protected Map<IdentityIF,IdentityIF> |
merges |
ObjectStates |
ostates |
boolean |
trackall |
| Constructor and Description |
|---|
RWTransaction(StorageAccessIF access) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignIdentity(PersistentIF object) |
void |
create(PersistentIF object)
INTERNAL: Registers the object with the transaction and marks it
for creation in the data repository.
|
void |
delete(PersistentIF object)
INTERNAL: Unregisters the object with the transaction and marks
it for deletion in the data repository.
|
void |
flush()
INTERNAL: Stores all pending changes in the data repository.
|
boolean |
isClean()
INTERNAL: Returns true the transaction is clean, i.e.
|
boolean |
isObjectClean(IdentityIF identity) |
boolean |
isReadOnly()
INTERNAL: Returns true if this is a read-only transaction.
|
void |
objectCreated(PersistentIF object) |
void |
objectDeleted(PersistentIF object) |
void |
objectDirty(PersistentIF object)
INTERNAL: Called by PersistentIFs when the object's data has changed.
|
void |
objectMerged(IdentityIF source,
IdentityIF target)
INTERNAL: Called by other transactions to notify this transaction of
committed merges.
|
void |
objectRead(IdentityIF identity) |
void |
prefetch(Class<?> type,
int[] fields,
boolean[] traverse,
Collection<IdentityIF> identities) |
void |
prefetch(Class<?> type,
int field,
boolean traverse,
Collection<IdentityIF> identities) |
void |
registerMerge(TMObject source,
TMObject target)
INTERNAL: Called by RDBMSTopicMapStore to notify the transaction
of a performed merge.
|
protected void |
transactionPostAbort() |
protected void |
transactionPostCommit() |
protected void |
transactionPreAbort() |
protected void |
transactionPreCommit() |
_getObject, abort, begin, checkIdentityMap, checkIdentityMapAndCreateInstance, checkIdentityMapNoLRU, close, commit, createInstance, createQuery, executeQuery, extractFieldValues, extractNonDirty, getAccessRegistrar, getId, getObject, getObject, getObjectAccess, getQuery, getStorageAccess, isActive, isFieldLoaded, isObjectLoaded, loadField, registerQuery, removeIdentityMapNoLRU, toString, validate, writeIdentityMappublic boolean trackall
public final ObjectStates ostates
protected Set<PersistentIF> chgcre
protected Set<PersistentIF> chgdel
protected Set<PersistentIF> chgdty
protected Map<IdentityIF,IdentityIF> merges
protected boolean flushing
public RWTransaction(StorageAccessIF access)
public boolean isClean()
TransactionIFpublic boolean isReadOnly()
TransactionIFpublic void assignIdentity(PersistentIF object)
public void create(PersistentIF object)
TransactionIFpublic void delete(PersistentIF object)
TransactionIFpublic void flush()
TransactionIFflush in interface TransactionIFflush in class AbstractTransactionpublic void objectDirty(PersistentIF object)
TransactionIFpublic void objectRead(IdentityIF identity)
public void objectCreated(PersistentIF object)
public void objectDeleted(PersistentIF object)
public boolean isObjectClean(IdentityIF identity)
public void registerMerge(TMObject source, TMObject target)
source - target - public void objectMerged(IdentityIF source, IdentityIF target)
objectMerged in class AbstractTransactionsource - The identity of the object merged into targettarget - The identity of the target object that was mergedprotected void transactionPreCommit()
transactionPreCommit in class AbstractTransactionprotected void transactionPostCommit()
transactionPostCommit in class AbstractTransactionprotected void transactionPreAbort()
transactionPreAbort in class AbstractTransactionprotected void transactionPostAbort()
transactionPostAbort in class AbstractTransactionpublic void prefetch(Class<?> type, int field, boolean traverse, Collection<IdentityIF> identities)
prefetch in interface TransactionIFprefetch in class AbstractTransactionpublic void prefetch(Class<?> type, int[] fields, boolean[] traverse, Collection<IdentityIF> identities)
prefetch in interface TransactionIFprefetch in class AbstractTransaction