Package net.ontopia.persistence.proxy
Class ROTransaction
java.lang.Object
net.ontopia.persistence.proxy.AbstractTransaction
net.ontopia.persistence.proxy.ROTransaction
- All Implemented Interfaces:
TransactionIF
INTERNAL: The read-only proxy transaction implementation.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignIdentity(PersistentIF object) voidcreate(PersistentIF object) INTERNAL: Registers the object with the transaction and marks it for creation in the data repository.voiddelete(PersistentIF object) INTERNAL: Unregisters the object with the transaction and marks it for deletion in the data repository.voidflush()INTERNAL: Stores all pending changes in the data repository.booleanisClean()INTERNAL: Returns true the transaction is clean, i.e. no changes have been made.booleanisObjectClean(IdentityIF identity) booleanINTERNAL: Returns true if this is a read-only transaction.voidobjectCreated(PersistentIF object) voidobjectDeleted(PersistentIF object) voidobjectDirty(PersistentIF object) INTERNAL: Called by PersistentIFs when the object's data has changed.voidobjectRead(IdentityIF identity) protected voidprotected voidprotected voidprotected voidMethods inherited from class net.ontopia.persistence.proxy.AbstractTransaction
_getObject, abort, begin, checkIdentityMap, checkIdentityMapAndCreateInstance, checkIdentityMapNoLRU, close, commit, createInstance, createQuery, executeQuery, extractFieldValues, extractNonDirty, getAccessRegistrar, getId, getObject, getObject, getObjectAccess, getQuery, getStorageAccess, isActive, isFieldLoaded, isObjectLoaded, loadField, objectMerged, prefetch, prefetch, registerQuery, removeIdentityMapNoLRU, toString, validate, writeIdentityMap
-
Constructor Details
-
ROTransaction
-
-
Method Details
-
isClean
public boolean isClean()Description copied from interface:TransactionIFINTERNAL: Returns true the transaction is clean, i.e. no changes have been made. -
isReadOnly
public boolean isReadOnly()Description copied from interface:TransactionIFINTERNAL: Returns true if this is a read-only transaction. -
assignIdentity
-
create
Description copied from interface:TransactionIFINTERNAL: Registers the object with the transaction and marks it for creation in the data repository. -
delete
Description copied from interface:TransactionIFINTERNAL: Unregisters the object with the transaction and marks it for deletion in the data repository. -
flush
public void flush()Description copied from interface:TransactionIFINTERNAL: Stores all pending changes in the data repository. Note that the transaction is not commited.- Specified by:
flushin interfaceTransactionIF- Specified by:
flushin classAbstractTransaction
-
objectDirty
Description copied from interface:TransactionIFINTERNAL: Called by PersistentIFs when the object's data has changed. -
objectRead
-
objectCreated
-
objectDeleted
-
isObjectClean
-
transactionPreCommit
protected void transactionPreCommit()- Specified by:
transactionPreCommitin classAbstractTransaction
-
transactionPostCommit
protected void transactionPostCommit()- Specified by:
transactionPostCommitin classAbstractTransaction
-
transactionPreAbort
protected void transactionPreAbort()- Specified by:
transactionPreAbortin classAbstractTransaction
-
transactionPostAbort
protected void transactionPostAbort()- Specified by:
transactionPostAbortin classAbstractTransaction
-