|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 TransactionIFpublic StorageAccessIF getStorageAccess()
TransactionIF
getStorageAccess in interface TransactionIFpublic boolean isActive()
TransactionIF
isActive in interface TransactionIFpublic boolean validate()
TransactionIF
validate in interface TransactionIFpublic void begin()
TransactionIF
begin in interface TransactionIFpublic void commit()
TransactionIF
commit in interface TransactionIFpublic void abort()
TransactionIF
abort in interface TransactionIFpublic void close()
TransactionIF
close in interface TransactionIFpublic abstract void flush()
TransactionIF
flush in interface TransactionIFprotected abstract void transactionPreCommit()
protected abstract void transactionPostCommit()
protected abstract void transactionPreAbort()
protected abstract void transactionPostAbort()
public ObjectAccessIF getObjectAccess()
TransactionIF
getObjectAccess in interface TransactionIFpublic AccessRegistrarIF getAccessRegistrar()
TransactionIF
getAccessRegistrar in interface TransactionIFpublic 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 TransactionIFpublic PersistentIF getObject(IdentityIF identity)
TransactionIF
getObject in interface TransactionIF
public PersistentIF getObject(IdentityIF identity,
boolean acceptDeleted)
TransactionIF
getObject in interface TransactionIFpublic PersistentIF _getObject(IdentityIF identity)
TransactionIF
_getObject in interface TransactionIFprotected 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 TransactionIFprotected 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 TransactionIFprotected 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.IOExceptionpublic 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 | |||||||||