public static TxConfig buildConfig ( final Class < ? > type , final Method method , final boolean useDefaults ) { final Transactional transactional = findAnnotation ( type , method , Transactional . class , useDefaults ) ; TxConfig res = null ; if ( transactional != null ) { final TxType txType = findAnnotation ( type , method , TxType . class , true ) ; res = new TxConfig ( wrapExceptions ( transactional . rollbackOn ( ) ) , wrapExceptions ( transactional . ignore ( ) ) , txType . value ( ) ) ; } return res ; }
Build transaction config for type .