|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionIF
INTERNAL: Interface that manages object transactions using the proxy framework.
This class is similar to the JDO PersistenceManager, StateManager and Transaction interfaces.
Method Summary | |
---|---|
PersistentIF |
_getObject(IdentityIF identity)
EXPERIMENTAL: ... |
void |
abort()
INTERNAL: Aborts the changes performed in the transaction. |
void |
assignIdentity(PersistentIF object)
|
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. |
void |
create(PersistentIF object)
INTERNAL: Registers the object with the transaction and marks it for creation in the data repository. |
QueryIF |
createQuery(JDOQuery jdoquery,
boolean resolve_identities)
INTERNAL: Build a QueryIF from the specified JDO query instance. |
void |
delete(PersistentIF identity)
INTERNAL: Unregisters the object with the transaction and marks it for deletion in the data repository. |
java.lang.Object |
executeQuery(java.lang.String name,
java.lang.Object[] params)
INTERNAL: Executes the named query. |
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. |
StorageAccessIF |
getStorageAccess()
INTERNAL: Gets the storage access used by the transaction. |
boolean |
isActive()
INTERNAL: Returns true the transaction is active. |
boolean |
isClean()
INTERNAL: Returns true the transaction is clean, i.e. |
boolean |
isFieldLoaded(IdentityIF identity,
int field)
EXPERIMENTAL: |
boolean |
isObjectClean(IdentityIF identity)
|
boolean |
isObjectLoaded(IdentityIF identity)
EXPERIMENTAL: |
boolean |
isReadOnly()
INTERNAL: Returns true if this is a read-only transaction. |
java.lang.Object |
loadField(IdentityIF object,
int field)
INTERNAL: Called by PersistentIFs when the value of the specified field is requested. |
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)
|
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)
|
boolean |
validate()
INTERNAL: Returns true if the transaction is valid. |
Method Detail |
---|
java.lang.String getId()
StorageAccessIF getStorageAccess()
ObjectAccessIF getObjectAccess()
AccessRegistrarIF getAccessRegistrar()
boolean isReadOnly()
boolean isActive()
boolean isClean()
boolean validate()
void begin()
void commit()
void abort()
void close()
void flush()
PersistentIF getObject(IdentityIF identity)
PersistentIF getObject(IdentityIF identity, boolean acceptDeleted)
PersistentIF _getObject(IdentityIF identity)
void assignIdentity(PersistentIF object)
void create(PersistentIF object)
void delete(PersistentIF identity)
void objectDirty(PersistentIF object)
void objectRead(IdentityIF identity)
void objectCreated(PersistentIF object)
void objectDeleted(PersistentIF object)
java.lang.Object loadField(IdentityIF object, int field) throws IdentityNotFoundException
IdentityNotFoundException
- if the identity was not found.boolean isObjectLoaded(IdentityIF identity)
boolean isFieldLoaded(IdentityIF identity, int field)
boolean isObjectClean(IdentityIF identity)
void prefetch(java.lang.Object type, int field, boolean traverse, java.util.Collection identities)
void prefetch(java.lang.Object type, int[] fields, boolean[] traverse, java.util.Collection identities)
java.lang.Object executeQuery(java.lang.String name, java.lang.Object[] params)
QueryIF createQuery(JDOQuery jdoquery, boolean resolve_identities)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |