|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryTransactionHelper
A locking helper interface intended to be used by flowscripts or corresponding wrapper components.
Method Summary | |
---|---|
boolean |
beginTran()
beginning a transaction on the repository |
boolean |
commitTran()
committing a transaction on the repository |
boolean |
lock(String uri)
lock the resource |
boolean |
lock(String uri,
int timeout)
lock the resource with explicit timeout in seconds |
boolean |
rollbackTran()
rolling back a transaction on the repository |
boolean |
supportsLocking()
checking wether the repository supports locking |
boolean |
supportsTransactions()
checking wether the repository supports transactions |
boolean |
unlock(String uri)
unlock resource |
Method Detail |
---|
boolean beginTran() throws ProcessingException
ProcessingException
boolean commitTran() throws ProcessingException
ProcessingException
boolean rollbackTran() throws ProcessingException
ProcessingException
boolean lock(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
boolean lock(String uri, int timeout) throws ProcessingException
uri
- the uri of the resource.timeout
- the lock timeout in seconds.
ProcessingException
boolean unlock(String uri) throws ProcessingException
uri
- the uri of the resource.
ProcessingException
boolean supportsTransactions()
boolean supportsLocking()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |