javax.ejb

Interface ApplicationException

public interface ApplicationException

The EJB annotation.

Method Summary

boolean
rollback()

Method Details

rollback

public boolean rollback()
            throws false
Usages and Demos :

View More Examples of rollback()
   1: 
   2: import javax.ejb.ApplicationException;
   3: 
   4:         ...
   5:     protected ApplicationExceptionInfo inspectRuntimeException(Class<? extends RuntimeException> uncheckedException) {
   6:         ApplicationException annotation = uncheckedException.getAnnotation(ApplicationException.class);
   7:         if (annotation == null)
   8:         ...
   9:             return null;
  10:         return (annotation.rollback() ? ApplicationExceptionInfo.ROLLBACK : ApplicationExceptionInfo.COMMIT);

View Full Code Here