FileDocCategorySizeDatePackage
EntityTransactionImpl.javaAPI DocGlassfish v2 API3136Tue May 22 16:54:28 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.transaction

EntityTransactionImpl

public class EntityTransactionImpl extends EntityTransactionImpl implements EntityTransaction
JDK 1.5 version of the EntityTransaction. Differs from base version only in that it takes a JDK 1.5 version of the EntityTransactionWrapper.
see
oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl

Fields Summary
Constructors Summary
public EntityTransactionImpl(EntityTransactionWrapper wrapper)

        super(wrapper);
    
Methods Summary
public voidcommit()
Commit the current transaction, writing any un-flushed changes to the database. This can only be invoked if {@link #isActive()} returns true.

throws
IllegalStateException if isActive() is false.
throws
PersistenceException if the commit fails.

      try{
        super.commit();
      }catch (oracle.toplink.essentials.exceptions.TopLinkException tlException ) {
		//put here to avoid EJB3.0 dependencies in TopLink for jdk 1.4 
        throw new javax.persistence.RollbackException(tlException);
      }