org.apache.felix.ipojo.transaction
Annotation Type Transactional


@Target(value=METHOD)
public @interface Transactional

Transactionnal Method annotation. Allows the declaration of transactionnal method. Be aware that despite is it provided in the annotations jar, it refers to an external handler.

Author:
Felix Project Team

Optional Element Summary
 boolean exceptiononrollback
          Sets if the transaction rollback throws an exception.
 String[] norollbackfor
          Sets the exceptions that do not rollback the current transaction.
 String propagation
          Sets the transaction propagation policy.
 long timeout
          Sets the transaction timeout.
 

timeout

public abstract long timeout
Sets the transaction timeout.

Default:
0L

propagation

public abstract String propagation
Sets the transaction propagation policy. Supported values are : requires mandatory, notsupported, never, requiresnew.

Default:
"requires"

norollbackfor

public abstract String[] norollbackfor
Sets the exceptions that do not rollback the current transaction.

Default:
{}

exceptiononrollback

public abstract boolean exceptiononrollback
Sets if the transaction rollback throws an exception.

Default:
false


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.