PHP Interface Jackalope\Transport\TransactionInterface

Inheritance: extends Jackalope\Transport\TransportInterface
Afficher le fichier Open project: jackalope/jackalope Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

commitTransaction() public méthode

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

rollbackTransaction() public méthode

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

setTransactionTimeout() public méthode

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