Package helma.objectmodel
Interface ITransaction
public interface ITransaction
This interface is kept for databases that are able
to run transactions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Rollback the transaction, forgetting the changed itemsvoid
addResource
(Object res, int status) Adds a resource to the list of resources encompassed by this transactionvoid
commit()
Complete the transaction by making its changes persistent.
-
Field Details
-
ADDED
static final int ADDED- See Also:
-
UPDATED
static final int UPDATED- See Also:
-
DELETED
static final int DELETED- See Also:
-
-
Method Details
-
commit
Complete the transaction by making its changes persistent.- Throws:
DatabaseException
-
abort
Rollback the transaction, forgetting the changed items- Throws:
DatabaseException
-
addResource
Adds a resource to the list of resources encompassed by this transaction- Parameters:
res
- the resource to addstatus
- the status of the resource (ADDED|UPDATED|DELETED)- Throws:
DatabaseException
-