org.neo4j.kernel.impl.transaction
Class UserTransactionImpl

java.lang.Object
  extended by org.neo4j.kernel.impl.transaction.UserTransactionImpl
All Implemented Interfaces:
UserTransaction

public class UserTransactionImpl
extends Object
implements UserTransaction


Constructor Summary
UserTransactionImpl(GraphDatabaseService neo4j)
           
 
Method Summary
 void begin()
           
 void commit()
           
 Integer getEventIdentifier()
          Returns the event identifier for the current transaction.
 int getStatus()
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserTransactionImpl

public UserTransactionImpl(GraphDatabaseService neo4j)
Method Detail

begin

public void begin()
           throws NotSupportedException,
                  SystemException
Specified by:
begin in interface UserTransaction
Throws:
NotSupportedException
SystemException

commit

public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException,
                   SystemException
Specified by:
commit in interface UserTransaction
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException

rollback

public void rollback()
              throws SecurityException,
                     IllegalStateException,
                     SystemException
Specified by:
rollback in interface UserTransaction
Throws:
SecurityException
IllegalStateException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Specified by:
setRollbackOnly in interface UserTransaction
Throws:
IllegalStateException
SystemException

getStatus

public int getStatus()
              throws SystemException
Specified by:
getStatus in interface UserTransaction
Throws:
SystemException

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws SystemException
Specified by:
setTransactionTimeout in interface UserTransaction
Throws:
SystemException

getEventIdentifier

public Integer getEventIdentifier()
Returns the event identifier for the current transaction. If no transaction is active null is returned.



Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.