public interface TransactionIF
This class is similar to the JDO PersistenceManager, StateManager and Transaction interfaces.
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
executeQuery(String name,
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.
|
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.
|
<F> F |
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(Class<?> type,
int[] fields,
boolean[] traverse,
Collection<IdentityIF> identities) |
void |
prefetch(Class<?> type,
int field,
boolean traverse,
Collection<IdentityIF> identities) |
boolean |
validate()
INTERNAL: Returns true if the transaction is valid.
|
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)
<F> F 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(Class<?> type, int field, boolean traverse, Collection<IdentityIF> identities)
void prefetch(Class<?> type, int[] fields, boolean[] traverse, Collection<IdentityIF> identities)
Object executeQuery(String name, Object[] params)