|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.AbstractTransaction
public abstract class AbstractTransaction
INTERNAL: The default proxy transaction implementation.
Field Summary | |
---|---|
protected StorageAccessIF |
access
|
protected boolean |
debug
|
protected java.lang.String |
id
|
protected LookupIndexIF |
identity_map
|
protected boolean |
isactive
|
protected boolean |
isclosed
|
protected java.util.Map |
lru
|
protected int |
lrusize
|
protected ObjectRelationalMappingIF |
mapping
|
protected ObjectAccessIF |
oaccess
|
protected java.util.Map |
querymap
|
protected AccessRegistrarIF |
registrar
|
protected long |
timestamp
|
protected StorageCacheIF |
txncache
|
Method Summary | |
---|---|
PersistentIF |
_getObject(IdentityIF identity)
EXPERIMENTAL: ... |
void |
abort()
INTERNAL: Aborts the changes performed in the transaction. |
void |
begin()
INTERNAL: Begins a new transaction. |
void |
close()
INTERNAL: Releases all resources used by the transaction. |
void |
commit()
INTERNAL: Commits the changes performed in the transaction. |
protected PersistentIF |
createInstance(IdentityIF identity)
|
QueryIF |
createQuery(JDOQuery jdoquery,
boolean resolve_identities)
INTERNAL: Build a QueryIF from the specified JDO query instance. |
java.lang.Object |
executeQuery(java.lang.String name,
java.lang.Object[] params)
INTERNAL: Executes the named query. |
protected java.util.Collection |
extractFieldValues(java.lang.Object type,
int field,
java.util.Collection identities)
|
protected java.util.Collection |
extractNonDirty(java.util.Collection identities)
|
abstract void |
flush()
INTERNAL: Stores all pending changes in the data repository. |
AccessRegistrarIF |
getAccessRegistrar()
INTERNAL: Gets the access registrar used by the transaction. |
java.lang.String |
getId()
INTERNAL: Gets the transaction id. |
PersistentIF |
getObject(IdentityIF identity)
INTERNAL: Gets the object instance with the given identity. |
PersistentIF |
getObject(IdentityIF identity,
boolean acceptDeleted)
INTERNAL: Gets the object instance with the given identity. |
ObjectAccessIF |
getObjectAccess()
INTERNAL: Gets the object access used by the transaction. |
protected QueryIF |
getQuery(java.lang.String name)
|
StorageAccessIF |
getStorageAccess()
INTERNAL: Gets the storage access used by the transaction. |
boolean |
isActive()
INTERNAL: Returns true the transaction is active. |
boolean |
isFieldLoaded(IdentityIF identity,
int field)
EXPERIMENTAL: |
boolean |
isObjectLoaded(IdentityIF identity)
EXPERIMENTAL: |
java.lang.Object |
loadField(IdentityIF identity,
int field)
INTERNAL: Called by PersistentIFs when the value of the specified field is requested. |
void |
prefetch(java.lang.Object type,
int[] fields,
boolean[] traverse,
java.util.Collection identities)
|
void |
prefetch(java.lang.Object type,
int field,
boolean traverse,
java.util.Collection identities)
|
protected void |
registerQuery(java.lang.String name,
QueryIF query)
|
java.lang.String |
toString()
|
protected abstract void |
transactionPostAbort()
|
protected abstract void |
transactionPostCommit()
|
protected abstract void |
transactionPreAbort()
|
protected abstract void |
transactionPreCommit()
|
boolean |
validate()
INTERNAL: Returns true if the transaction is valid. |
void |
writeIdentityMap(java.io.Writer out,
boolean dump)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.ontopia.persistence.proxy.TransactionIF |
---|
assignIdentity, create, delete, isClean, isObjectClean, isReadOnly, objectCreated, objectDeleted, objectDirty, objectRead |
Field Detail |
---|
protected boolean debug
protected boolean isactive
protected boolean isclosed
protected java.lang.String id
protected StorageAccessIF access
protected StorageCacheIF txncache
protected AccessRegistrarIF registrar
protected ObjectAccessIF oaccess
protected ObjectRelationalMappingIF mapping
protected LookupIndexIF identity_map
protected java.util.Map lru
protected int lrusize
protected java.util.Map querymap
protected long timestamp
Method Detail |
---|
public java.lang.String getId()
TransactionIF
getId
in interface TransactionIF
public StorageAccessIF getStorageAccess()
TransactionIF
getStorageAccess
in interface TransactionIF
public boolean isActive()
TransactionIF
isActive
in interface TransactionIF
public boolean validate()
TransactionIF
validate
in interface TransactionIF
public void begin()
TransactionIF
begin
in interface TransactionIF
public void commit()
TransactionIF
commit
in interface TransactionIF
public void abort()
TransactionIF
abort
in interface TransactionIF
public void close()
TransactionIF
close
in interface TransactionIF
public abstract void flush()
TransactionIF
flush
in interface TransactionIF
protected abstract void transactionPreCommit()
protected abstract void transactionPostCommit()
protected abstract void transactionPreAbort()
protected abstract void transactionPostAbort()
public ObjectAccessIF getObjectAccess()
TransactionIF
getObjectAccess
in interface TransactionIF
public AccessRegistrarIF getAccessRegistrar()
TransactionIF
getAccessRegistrar
in interface TransactionIF
public boolean isObjectLoaded(IdentityIF identity)
TransactionIF
isObjectLoaded
in interface TransactionIF
public boolean isFieldLoaded(IdentityIF identity, int field)
TransactionIF
isFieldLoaded
in interface TransactionIF
public java.lang.Object loadField(IdentityIF identity, int field)
TransactionIF
loadField
in interface TransactionIF
public PersistentIF getObject(IdentityIF identity)
TransactionIF
getObject
in interface TransactionIF
public PersistentIF getObject(IdentityIF identity, boolean acceptDeleted)
TransactionIF
getObject
in interface TransactionIF
public PersistentIF _getObject(IdentityIF identity)
TransactionIF
_getObject
in interface TransactionIF
protected PersistentIF createInstance(IdentityIF identity)
public void prefetch(java.lang.Object type, int field, boolean traverse, java.util.Collection identities)
prefetch
in interface TransactionIF
public void prefetch(java.lang.Object type, int[] fields, boolean[] traverse, java.util.Collection identities)
prefetch
in interface TransactionIF
protected java.util.Collection extractNonDirty(java.util.Collection identities)
protected java.util.Collection extractFieldValues(java.lang.Object type, int field, java.util.Collection identities)
public java.lang.Object executeQuery(java.lang.String name, java.lang.Object[] params)
TransactionIF
executeQuery
in interface TransactionIF
public QueryIF createQuery(JDOQuery jdoquery, boolean resolve_identities)
TransactionIF
createQuery
in interface TransactionIF
protected QueryIF getQuery(java.lang.String name)
protected void registerQuery(java.lang.String name, QueryIF query)
public void writeIdentityMap(java.io.Writer out, boolean dump) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |