PHP Interface Jackalope\Transport\TransactionInterface

Inheritance: extends Jackalope\Transport\TransportInterface
Show file Open project: jackalope/jackalope Interface Usage Examples

Public Methods

Method Description
beginTransaction ( ) : string Initiates a "local transaction" on the root node
commitTransaction ( ) Commits a transaction started with {@link beginTransaction()}
rollbackTransaction ( ) Rolls back a transaction started with {@link beginTransaction()}
setTransactionTimeout ( integer $seconds ) Sets the default transaction timeout

Method Details

beginTransaction() public method

Initiates a "local transaction" on the root node
public beginTransaction ( ) : string
return string The received transaction token

commitTransaction() public method

Commits a transaction started with {@link beginTransaction()}
public commitTransaction ( )

rollbackTransaction() public method

Rolls back a transaction started with {@link beginTransaction()}
public rollbackTransaction ( )

setTransactionTimeout() public method

Sets the default transaction timeout
public setTransactionTimeout ( integer $seconds )
$seconds integer The value of the timeout in seconds