Package net.ontopia.persistence.proxy
Class ROTransaction
- java.lang.Object
-
- net.ontopia.persistence.proxy.AbstractTransaction
-
- net.ontopia.persistence.proxy.ROTransaction
-
- All Implemented Interfaces:
TransactionIF
public class ROTransaction extends AbstractTransaction
INTERNAL: The read-only proxy transaction implementation.
-
-
Constructor Summary
Constructors Constructor Description ROTransaction(StorageAccessIF access)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
objectRead(IdentityIF identity)
protected void
transactionPostAbort()
protected void
transactionPostCommit()
protected void
transactionPreAbort()
protected void
transactionPreCommit()
-
Methods 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 Detail
-
ROTransaction
public ROTransaction(StorageAccessIF access)
-
-
Method Detail
-
isClean
public boolean isClean()
Description copied from interface:TransactionIF
INTERNAL: Returns true the transaction is clean, i.e. no changes have been made.
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:TransactionIF
INTERNAL: Returns true if this is a read-only transaction.
-
assignIdentity
public void assignIdentity(PersistentIF object)
-
create
public void create(PersistentIF object)
Description copied from interface:TransactionIF
INTERNAL: Registers the object with the transaction and marks it for creation in the data repository.
-
delete
public void delete(PersistentIF object)
Description copied from interface:TransactionIF
INTERNAL: Unregisters the object with the transaction and marks it for deletion in the data repository.
-
flush
public void flush()
Description copied from interface:TransactionIF
INTERNAL: Stores all pending changes in the data repository. Note that the transaction is not commited.- Specified by:
flush
in interfaceTransactionIF
- Specified by:
flush
in classAbstractTransaction
-
objectDirty
public void objectDirty(PersistentIF object)
Description copied from interface:TransactionIF
INTERNAL: Called by PersistentIFs when the object's data has changed.
-
objectRead
public void objectRead(IdentityIF identity)
-
objectCreated
public void objectCreated(PersistentIF object)
-
objectDeleted
public void objectDeleted(PersistentIF object)
-
isObjectClean
public boolean isObjectClean(IdentityIF identity)
-
transactionPreCommit
protected void transactionPreCommit()
- Specified by:
transactionPreCommit
in classAbstractTransaction
-
transactionPostCommit
protected void transactionPostCommit()
- Specified by:
transactionPostCommit
in classAbstractTransaction
-
transactionPreAbort
protected void transactionPreAbort()
- Specified by:
transactionPreAbort
in classAbstractTransaction
-
transactionPostAbort
protected void transactionPostAbort()
- Specified by:
transactionPostAbort
in classAbstractTransaction
-
-