com.interface21.transaction.interceptor
Class TransactionAttributeEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.interface21.transaction.interceptor.TransactionAttributeEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class TransactionAttributeEditor
extends java.beans.PropertyEditorSupport

PropertyEditor for TransactionAttribute objects. Takes Strings of form PROPAGATION_CODE,ISOLATION_CODE,+Exception1,-Exception2 where only propagation code is required. Propagation and isolation codes must use the names specified in the PlatformTransactionManager class. A + before an exception name substring indicates that transactions should commit even if this exception is thrown; a - that they should roll back.

Since:
24-Apr-2003
Version:
$Id: TransactionAttributeEditor.java,v 1.1 2003/06/13 13:40:39 jhoeller Exp $
Author:
Rod Johnson
See Also:
PlatformTransactionManager, Constants

Field Summary
static char COMMIT_PREFIX
           
static char ROLLBACK_PREFIX
           
 
Constructor Summary
TransactionAttributeEditor()
           
 
Method Summary
 void setAsText(java.lang.String s)
          Format is TXREQ,TX_REQ_NEW,+RemoteException,-RuntimeException Null or the empty string means that the method is non transactional.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLLBACK_PREFIX

public static final char ROLLBACK_PREFIX

COMMIT_PREFIX

public static final char COMMIT_PREFIX
Constructor Detail

TransactionAttributeEditor

public TransactionAttributeEditor()
Method Detail

setAsText

public void setAsText(java.lang.String s)
               throws java.lang.IllegalArgumentException
Format is TXREQ,TX_REQ_NEW,+RemoteException,-RuntimeException Null or the empty string means that the method is non transactional.
Overrides:
setAsText in class java.beans.PropertyEditorSupport
See Also:
PropertyEditor.setAsText(java.lang.String)


Rod Johnson and Spring contributors 2001-2003.