org.jboss.aspects.tx
Annotation Type TxLocal


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface TxLocal

This is an aspect-oriented annotation and triggers certain behavior. It allows a field to have the value of itself pertain to the current transaction. The fields transactional and non-transactional value is always separate At tx commit, the transactional value the field had is wiped away. At tx commit, the transactional value does not correspond to the non-transactional value If you are within a transaction and you get the value of the field before setting it then the initial transational value will be set to the current non-transactional value

Version:
$Revision: 57757 $
Author:
Bill Burke



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.