net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx
Class AnnotationDriven

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx.AnnotationDriven
All Implemented Interfaces:
Serializable, Cloneable

public class AnnotationDriven
extends Object
implements Serializable, Cloneable

Indicates that transaction configuration is defined by Java 5 annotations on bean classes, and that proxies are automatically to be created for the relevant annotated beans. The default annotations supported are Spring's @Transactional and EJB3's @TransactionAttribute (if available). Transaction semantics such as propagation settings, the isolation level, the rollback rules, etc are all defined in the annotation metadata.

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="transaction-manager" type="{http://www.w3.org/2001/XMLSchema}string" default="transactionManager" />
       <attribute name="mode" default="proxy">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="proxy"/>
             <enumeration value="aspectj"/>
           </restriction>
         </simpleType>
       </attribute>
       <attribute name="proxy-target-class" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}int" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  String mode
           
protected  Integer order
           
protected  Boolean proxyTargetClass
           
protected  String transactionManager
           
 
Constructor Summary
AnnotationDriven()
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx.AnnotationDriven instance.
AnnotationDriven(AnnotationDriven o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx.AnnotationDriven instance by copying a given instance.
 
Method Summary
 AnnotationDriven clone()
          Creates and returns a copy of this object.
 String getMode()
          Gets the value of the mode property.
 Integer getOrder()
          Gets the value of the order property.
 String getTransactionManager()
          Gets the value of the transactionManager property.
 boolean isProxyTargetClass()
          Gets the value of the proxyTargetClass property.
 void setMode(String value)
          Sets the value of the mode property.
 void setOrder(Integer value)
          Sets the value of the order property.
 void setProxyTargetClass(Boolean value)
          Sets the value of the proxyTargetClass property.
 void setTransactionManager(String value)
          Sets the value of the transactionManager property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionManager

protected String transactionManager

mode

protected String mode

proxyTargetClass

protected Boolean proxyTargetClass

order

protected Integer order
Constructor Detail

AnnotationDriven

public AnnotationDriven()
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx.AnnotationDriven instance.


AnnotationDriven

public AnnotationDriven(AnnotationDriven o)
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.spring.tx.AnnotationDriven instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getTransactionManager

public String getTransactionManager()
Gets the value of the transactionManager property.

Returns:
possible object is String

setTransactionManager

public void setTransactionManager(String value)
Sets the value of the transactionManager property.

Parameters:
value - allowed object is String

getMode

public String getMode()
Gets the value of the mode property.

Returns:
possible object is String

setMode

public void setMode(String value)
Sets the value of the mode property.

Parameters:
value - allowed object is String

isProxyTargetClass

public boolean isProxyTargetClass()
Gets the value of the proxyTargetClass property.

Returns:
possible object is Boolean

setProxyTargetClass

public void setProxyTargetClass(Boolean value)
Sets the value of the proxyTargetClass property.

Parameters:
value - allowed object is Boolean

getOrder

public Integer getOrder()
Gets the value of the order property.

Returns:
possible object is Integer

setOrder

public void setOrder(Integer value)
Sets the value of the order property.

Parameters:
value - allowed object is Integer

clone

public AnnotationDriven clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.