|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.jdo.conf.DataSource
public class DataSource
Class DataSource.
| Constructor Summary | |
|---|---|
DataSource()
|
|
| Method Summary | |
|---|---|
void |
addParam(int index,
Param vParam)
|
void |
addParam(Param vParam)
|
Enumeration<? extends Param> |
enumerateParam()
Method enumerateParam. |
String |
getClassName()
Returns the value of field 'className'. |
Param[] |
getParam()
Method getParam.Returns the contents of the collection in an Array. |
Param |
getParam(int index)
Method getParam. |
int |
getParamCount()
Method getParamCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Param> |
iterateParam()
Method iterateParam. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllParam()
|
boolean |
removeParam(Param vParam)
Method removeParam. |
Param |
removeParamAt(int index)
Method removeParamAt. |
void |
setClassName(String className)
Sets the value of field 'className'. |
void |
setParam(int index,
Param vParam)
|
void |
setParam(Param[] vParamArray)
|
static DataSource |
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 |
|---|
public DataSource()
| Method Detail |
|---|
public void addParam(Param vParam)
throws IndexOutOfBoundsException
vParam -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addParam(int index,
Param vParam)
throws IndexOutOfBoundsException
index - vParam -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Param> enumerateParam()
public String getClassName()
public Param getParam(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Param[] getParam()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getParamCount()
public boolean isValid()
public Iterator<? extends Param> iterateParam()
public void marshal(Writer out)
throws MarshalException,
ValidationException
out -
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
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
handler -
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 marshalingpublic void removeAllParam()
public boolean removeParam(Param vParam)
vParam -
public Param removeParamAt(int index)
index -
public void setClassName(String className)
className - the value of field 'className'.
public void setParam(int index,
Param vParam)
throws IndexOutOfBoundsException
index - vParam -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setParam(Param[] vParamArray)
vParamArray -
public static DataSource unmarshal(Reader reader)
throws MarshalException,
ValidationException
reader -
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
public void validate()
throws ValidationException
ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||