public class JdbcDataSource extends Object implements Serializable
Constructor and Description |
---|
JdbcDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
addParam(int index,
Param vParam) |
void |
addParam(Param vParam) |
Enumeration<Param> |
enumerateParam()
Method enumerateParam.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
String |
getClassName()
Returns the value of field 'className'.
|
String |
getDatabaseName()
Returns the value of field 'databaseName'.
|
String |
getName()
Returns the value of field 'name'.
|
Param[] |
getParam()
Method getParam.Returns the contents of the collection in an
Array.
|
Param |
getParam(int index)
Method getParam.
|
List<Param> |
getParamCollection()
Method getParamCollection.Returns a reference to
'_paramList'.
|
int |
getParamCount()
Method getParamCount.
|
String |
getPassword()
Returns the value of field 'password'.
|
String |
getSchemaName()
Returns the value of field 'schemaName'.
|
String |
getUrl()
Returns the value of field 'url'.
|
String |
getUserName()
Returns the value of field 'userName'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<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 |
setDatabaseName(String databaseName)
Sets the value of field 'databaseName'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setParam(int index,
Param vParam) |
void |
setParam(List<Param> vParamList)
Sets the value of '_paramList' by copying the given Vector.
|
void |
setParam(Param[] vParamArray) |
void |
setParamCollection(List<Param> paramList)
Deprecated.
|
void |
setPassword(String password)
Sets the value of field 'password'.
|
void |
setSchemaName(String schemaName)
Sets the value of field 'schemaName'.
|
void |
setUrl(String url)
Sets the value of field 'url'.
|
void |
setUserName(String userName)
Sets the value of field 'userName'.
|
static JdbcDataSource |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addParam(Param vParam) throws IndexOutOfBoundsException
vParam
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addParam(int index, Param vParam) throws IndexOutOfBoundsException
index
- vParam
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Param> enumerateParam()
public boolean equals(Object obj)
public String getClassName()
public String getDatabaseName()
public String getName()
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 List<Param> getParamCollection()
public int getParamCount()
public String getPassword()
public String getSchemaName()
public String getUrl()
public String getUserName()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Param> iterateParam()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.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 setDatabaseName(String databaseName)
databaseName
- the value of field 'databaseName'.public void setName(String name)
name
- the value of field 'name'.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 void setParam(List<Param> vParamList)
vParamList
- the Vector to copy.public void setParamCollection(List<Param> paramList)
paramList
- the Vector to set.public void setPassword(String password)
password
- the value of field 'password'.public void setSchemaName(String schemaName)
schemaName
- the value of field 'schemaName'.public void setUrl(String url)
url
- the value of field 'url'.public void setUserName(String userName)
userName
- the value of field 'userName'.public static JdbcDataSource unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2017. All rights reserved.