org.castor.jdo.conf
Class TransactionDemarcation

java.lang.Object
  extended by org.castor.jdo.conf.TransactionDemarcation
All Implemented Interfaces:
Serializable

public class TransactionDemarcation
extends Object
implements Serializable

Class TransactionDemarcation.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
TransactionDemarcation()
           
 
Method Summary
 String getMode()
          Returns the value of field 'mode'.
 TransactionManager getTransactionManager()
          Returns the value of field 'transactionManager'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setMode(String mode)
          Sets the value of field 'mode'.
 void setTransactionManager(TransactionManager transactionManager)
          Sets the value of field 'transactionManager'.
static TransactionDemarcation unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionDemarcation

public TransactionDemarcation()
Method Detail

getMode

public String getMode()
Returns the value of field 'mode'.

Returns:
the value of field 'Mode'.

getTransactionManager

public TransactionManager getTransactionManager()
Returns the value of field 'transactionManager'.

Returns:
the value of field 'TransactionManager'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
ValidationException - if this object is an invalid instance according to the schema
MarshalException - if object is null or if any SAXException is thrown during marshaling

setMode

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

Parameters:
mode - the value of field 'mode'.

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)
Sets the value of field 'transactionManager'.

Parameters:
transactionManager - the value of field 'transactionManager'.

unmarshal

public static TransactionDemarcation unmarshal(Reader reader)
                                        throws MarshalException,
                                               ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.castor.jdo.conf.TransactionDemarcation
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws ValidationException
Throws:
ValidationException - if this object is an invalid instance according to the schema


Copyright © 2010. All Rights Reserved.