coldbox.system.aop.aspects

Class HibernateTransaction

WEB-INF.cftags.component
        extended by coldbox.system.aop.aspects.HibernateTransaction
Class Attributes:
  • accessors : true
  •  
  • author : Luis Majano
  •  
  • description : A cool annotation based Transaction Aspect for WireBox
  •  
  • methodmatcher : annotatedWith:transactional
  •  
  • classmatcher : any
  •  
    All Implemented Interfaces:
    MethodInterceptor

    ******************************************************************************* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* This interceptor will inspect objects for the 'transactional' annotation and if found, it will wrap it in a transaction safe hibernate transaction. This aspect is a self binding aspect for WireBox that registers itself using the two annotations below The transactional annotation can have a value if you are using multi-datasources with ORM. The value of the transactional annotation denotes the dsn.

    Property Summary
    type property default serializable required
    any log


    • inject = logbox:logger:{this}
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    any GETLOG()
    HibernateTransaction SETLOG(any log)
    any invokeMethod(any invocation)
         The AOP around advice for hibernate transactions.
     
    Methods inherited from class WEB-INF.cftags.component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    log

    property any log

    Attributes:
    inject - logbox:logger:{this}
    required - false
    serializable - true

    Method Detail

    GETLOG

    public any GETLOG()


    SETLOG

    public HibernateTransaction SETLOG(any log)

    Parameters:
    log

    invokeMethod

    public any invokeMethod(any invocation)

    The AOP around advice for hibernate transactions

    Specified by:
    invokeMethod in interface MethodInterceptor
    Parameters:
    invocation