|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.opennmsDataSources.JdbcDataSource
public class JdbcDataSource
Top-level element for the opennms-database.xml configuration file.
| Constructor Summary | |
|---|---|
JdbcDataSource()
|
|
| Method Summary | |
|---|---|
void |
addParam(int index,
Param vParam)
|
void |
addParam(Param vParam)
|
Enumeration<Param> |
enumerateParam()
Method enumerateParam. |
String |
getClassName()
Returns the value of field 'className'. |
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 |
getUrl()
Returns the value of field 'url'. |
String |
getUserName()
Returns the value of field 'userName'. |
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 |
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcDataSource()
| 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<Param> enumerateParam()
public String getClassName()
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 getUrl()
public String getUserName()
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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.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 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 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 marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.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 | ||||||||