Uses of Class
org.ofbiz.core.entity.GenericTransactionException
Packages that use GenericTransactionException
-
Uses of GenericTransactionException in org.ofbiz.core.entity
Methods in org.ofbiz.core.entity that throw GenericTransactionExceptionModifier and TypeMethodDescriptionstatic booleanTransactionUtil.begin()Begins a transaction in the current thread IF transactions are available; only tries if the current transaction status is ACTIVE, if not active it returns false.static booleanTransactionUtil.beginLocalTransaction(String helperName, int transactionIsolationLevel) Starts a transaction if one does not exist already.static voidTransactionUtil.commit()Commits the transaction in the current thread IF transactions are availablestatic voidTransactionUtil.commit(boolean beganTransaction) Commits the transaction in the current thread IF transactions are available AND if beganTransaction is truestatic voidTransactionUtil.commitLocalTransaction(boolean beganTransaction) Commits a transaction if beganTransaction is true and there is an active transaction.static ConnectionTransactionUtil.enlistConnection(XAConnection xacon) Enlists the given XAConnection and if a transaction is active in the current thread, returns a plain JDBC Connectionstatic voidTransactionUtil.enlistResource(XAResource resource) static intTransactionUtil.getStatus()Gets the status of the transaction in the current thread IF transactions are available, otherwise returns STATUS_NO_TRANSACTIONstatic voidTransactionUtil.rollback()Rolls back transaction in the current thread IF transactions are availablestatic voidTransactionUtil.rollback(boolean beganTransaction) Rolls back transaction in the current thread IF transactions are available AND if beganTransaction is true; if beganTransaction is not true, setRollbackOnly is called to insure that the transaction will be rolled backstatic voidTransactionUtil.rollbackLocalTransaction(boolean beganTransaction) Rolls back a transaction if beganTransaction is true and there is an active transaction.static voidTransactionUtil.rollbackRequiredLocalTransaction(boolean beganTransaction) Makes a rollback the only possible outcome of the transaction in the current thread IF transactions are available.static voidTransactionUtil.setRollbackOnly()Makes a roll back the only possible outcome of the transaction in the current thread IF transactions are availablevoidEntitySaxReader.setTransactionTimeout(int transactionTimeout) static voidTransactionUtil.setTransactionTimeout(int seconds) Sets the timeout of the transaction in the current thread IF transactions are available