com.hp.hpl.jena.sparql.core
Interface Transactional


public interface Transactional

Interface that encapulsated begin/abort|commit/close.

The read lifcycle is:

  begin(READ) ... end()

The write lifcycle is:

  begin(WRITE) ... abort() or commit() [end()is optional]


Method Summary
 void abort()
          Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)
 void begin(ReadWrite readWrite)
          Start either a READ or WRITE transaction
 void commit()
          Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
 void end()
          Finish the transaction - if a write transaction and commit() has not been called, then abort
 boolean isInTransaction()
          Say whether a transaction is active
 

Method Detail

begin

void begin(ReadWrite readWrite)
Start either a READ or WRITE transaction


commit

void commit()
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)


abort

void abort()
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)


isInTransaction

boolean isInTransaction()
Say whether a transaction is active


end

void end()
Finish the transaction - if a write transaction and commit() has not been called, then abort



Licenced under the Apache License, Version 2.0