Commits the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
@return the parent transaction or null if the committed transaction wasnot nested.
@throws com.sleepycat.je.rep.InsufficientReplicasException if the masterin a replicated environment could not contact a quorum of replicas as determined by the {@link com.sleepycat.je.Durability.ReplicaAckPolicy}. The application must abort the transaction and can choose to retry it.
@throws com.sleepycat.je.rep.InsufficientAcksException if the master ina replicated environment did not receive enough replica acknowledgments, although the commit succeeded locally.
@throws com.sleepycat.je.rep.ReplicaWriteException if a write operationwas performed with this transaction, but this node is now a Replica.
@throws OperationFailureException if this exception occurred earlier andcaused the transaction to be invalidated.
@throws EnvironmentFailureException if an unexpected, internal orenvironment-wide failure occurs.
@throws DatabaseException if an error occurs committing the transaction.The transaction will still be closed and the parent transaction will become the current transaction.
@throws IllegalStateException if no transaction is active for thecurrent thread for this environment.
Commits and closes the current transaction. This commits all database-changing statements (e.g. UPDATE, INSERT and DELETE) issued within the transaction since the last commit to the database, and releases any locks held by the transaction.
@throws TransactionNotInProgressException If there is no transaction currently in progress
@throws TransactionAbortedException If the transaction cannot be committed
PUBLIC: Commit the active database transaction. This allows a group of database modification to be committed or rolled back as a unit. All writes/deletes will be sent to the database be will not be visible to other users until commit. Although databases do not allow nested transaction, EclipseLink supports nesting through only committing to the database on the outer commit.
@exception DatabaseException most databases validate changes as they are done,normally errors do not occur on commit unless the disk fails or the connection is lost.
@exception ConcurrencyException if this session is not within a transaction.
Commits the transaction if possible otherwise rollsback the transaction.
@throws IOException throws IoException if there is a problem committing.
@model
Commits any changes that have occurred to objects within the transaction. In non-transactional persistence context implementations, this operation will do nothing.
@throws PersistenceException On error performing the operations on the persistent storage
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.