Annotation Interface Transactional


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Documented public @interface Transactional
Transactional annotation, if class or method was annotated with this annotation, system will execute method in transactional mode
Version:
$Revision: 1.0 $ $Date: Mar 30, 2016 3:45:19 PM $
Author:
Steven Wee wmkm0113@Hotmail.com
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Transactional isolation
    Class<?>[]
    System will process rollback automatic when catch these exceptions
    int
    Setting for transactional timeout value
  • Element Details

    • timeout

      int timeout
      Setting for transactional timeout value
      Returns:
      Transactional timeout value
      Default:
      -1
    • isolation

      Isolation isolation
      Transactional isolation
      Returns:
      Transactional isolation
      See Also:
      Default:
      DEFAULT
    • rollbackFor

      Class<?>[] rollbackFor
      System will process rollback automatic when catch these exceptions
      Returns:
      Rollback class list
      Default:
      {}