|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.AbstractTransaction net.ontopia.persistence.proxy.ROTransaction
public class ROTransaction
INTERNAL: The read-only proxy transaction implementation.
Field Summary |
---|
Fields inherited from class net.ontopia.persistence.proxy.AbstractTransaction |
---|
access, debug, id, identity_map, isactive, isclosed, lru, lrusize, mapping, oaccess, querymap, registrar, timestamp, txncache |
Constructor Summary | |
---|---|
ROTransaction(StorageAccessIF access)
|
Method Summary | |
---|---|
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, close, commit, createInstance, createQuery, executeQuery, extractFieldValues, extractNonDirty, getAccessRegistrar, getId, getObject, getObject, getObjectAccess, getQuery, getStorageAccess, isActive, isFieldLoaded, isObjectLoaded, loadField, prefetch, prefetch, registerQuery, toString, validate, writeIdentityMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ROTransaction(StorageAccessIF access)
Method Detail |
---|
public boolean isClean()
TransactionIF
public boolean isReadOnly()
TransactionIF
public void assignIdentity(PersistentIF object)
public void create(PersistentIF object)
TransactionIF
public void delete(PersistentIF object)
TransactionIF
public void flush()
TransactionIF
flush
in interface TransactionIF
flush
in class AbstractTransaction
public void objectDirty(PersistentIF object)
TransactionIF
public void objectRead(IdentityIF identity)
public void objectCreated(PersistentIF object)
public void objectDeleted(PersistentIF object)
public boolean isObjectClean(IdentityIF identity)
protected void transactionPreCommit()
transactionPreCommit
in class AbstractTransaction
protected void transactionPostCommit()
transactionPostCommit
in class AbstractTransaction
protected void transactionPreAbort()
transactionPreAbort
in class AbstractTransaction
protected void transactionPostAbort()
transactionPostAbort
in class AbstractTransaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |