org.castor.jdo.conf
Class DatabaseChoice

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

public class DatabaseChoice
extends Object
implements Serializable

Class DatabaseChoice.

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

Constructor Summary
DatabaseChoice()
           
 
Method Summary
 DataSource getDataSource()
          Returns the value of field 'dataSource'.
 Driver getDriver()
          Returns the value of field 'driver'.
 Jndi getJndi()
          Returns the value of field 'jndi'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setDataSource(DataSource dataSource)
          Sets the value of field 'dataSource'.
 void setDriver(Driver driver)
          Sets the value of field 'driver'.
 void setJndi(Jndi jndi)
          Sets the value of field 'jndi'.
static DatabaseChoice 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

DatabaseChoice

public DatabaseChoice()
Method Detail

getDataSource

public DataSource getDataSource()
Returns the value of field 'dataSource'.

Returns:
the value of field 'DataSource'.

getDriver

public Driver getDriver()
Returns the value of field 'driver'.

Returns:
the value of field 'Driver'.

getJndi

public Jndi getJndi()
Returns the value of field 'jndi'.

Returns:
the value of field 'Jndi'.

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

setDataSource

public void setDataSource(DataSource dataSource)
Sets the value of field 'dataSource'.

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

setDriver

public void setDriver(Driver driver)
Sets the value of field 'driver'.

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

setJndi

public void setJndi(Jndi jndi)
Sets the value of field 'jndi'.

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.castor.jdo.conf.DatabaseChoice
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.