org.castor.jdo.conf
Class DataSource

java.lang.Object
  extended byorg.castor.jdo.conf.DataSource
All Implemented Interfaces:
java.io.Serializable

public class DataSource
extends java.lang.Object
implements java.io.Serializable

Class DataSource.

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

Constructor Summary
DataSource()
           
 
Method Summary
 void addParam(int index, Param vParam)
          Method addParam
 void addParam(Param vParam)
          Method addParam
 void clearParam()
          Method clearParam
 java.util.Enumeration enumerateParam()
          Method enumerateParam
 java.lang.String getClassName()
          Returns the value of field 'className'.
 Param[] getParam()
          Method getParam
 Param getParam(int index)
          Method getParam
 int getParamCount()
          Method getParamCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeParam(Param vParam)
          Method removeParam
 void setClassName(java.lang.String className)
          Sets the value of field 'className'.
 void setParam(int index, Param vParam)
          Method setParam
 void setParam(Param[] paramArray)
          Method setParam
static DataSource unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()
Method Detail

addParam

public void addParam(Param vParam)
              throws java.lang.IndexOutOfBoundsException
Method addParam

Parameters:
vParam -
Throws:
java.lang.IndexOutOfBoundsException

addParam

public void addParam(int index,
                     Param vParam)
              throws java.lang.IndexOutOfBoundsException
Method addParam

Parameters:
index -
vParam -
Throws:
java.lang.IndexOutOfBoundsException

clearParam

public void clearParam()
Method clearParam


enumerateParam

public java.util.Enumeration enumerateParam()
Method enumerateParam

Returns:
Enumeration

getClassName

public java.lang.String getClassName()
Returns the value of field 'className'.

Returns:
String

getParam

public Param getParam(int index)
               throws java.lang.IndexOutOfBoundsException
Method getParam

Parameters:
index -
Returns:
Param
Throws:
java.lang.IndexOutOfBoundsException

getParam

public Param[] getParam()
Method getParam

Returns:
Param

getParamCount

public int getParamCount()
Method getParamCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeParam

public boolean removeParam(Param vParam)
Method removeParam

Parameters:
vParam -
Returns:
boolean

setClassName

public void setClassName(java.lang.String className)
Sets the value of field 'className'.

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

setParam

public void setParam(int index,
                     Param vParam)
              throws java.lang.IndexOutOfBoundsException
Method setParam

Parameters:
index -
vParam -
Throws:
java.lang.IndexOutOfBoundsException

setParam

public void setParam(Param[] paramArray)
Method setParam

Parameters:
paramArray -

unmarshal

public static DataSource unmarshal(java.io.Reader reader)
                            throws org.exolab.castor.xml.MarshalException,
                                   org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
DataSource
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright 2008 null. All Rights Reserved.