public class DataSourceConfiguration extends Object implements Serializable
Constructor and Description |
---|
DataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addJdbcDataSource(int index,
JdbcDataSource vJdbcDataSource) |
void |
addJdbcDataSource(JdbcDataSource vJdbcDataSource) |
Enumeration<JdbcDataSource> |
enumerateJdbcDataSource()
Method enumerateJdbcDataSource.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
ConnectionPool |
getConnectionPool()
Returns the value of field 'connectionPool'.
|
JdbcDataSource[] |
getJdbcDataSource()
Method getJdbcDataSource.Returns the contents of the
collection in an Array.
|
JdbcDataSource |
getJdbcDataSource(int index)
Method getJdbcDataSource.
|
List<JdbcDataSource> |
getJdbcDataSourceCollection()
Method getJdbcDataSourceCollection.Returns a reference to
'_jdbcDataSourceList'.
|
int |
getJdbcDataSourceCount()
Method getJdbcDataSourceCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<JdbcDataSource> |
iterateJdbcDataSource()
Method iterateJdbcDataSource.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllJdbcDataSource() |
boolean |
removeJdbcDataSource(JdbcDataSource vJdbcDataSource)
Method removeJdbcDataSource.
|
JdbcDataSource |
removeJdbcDataSourceAt(int index)
Method removeJdbcDataSourceAt.
|
void |
setConnectionPool(ConnectionPool connectionPool)
Sets the value of field 'connectionPool'.
|
void |
setJdbcDataSource(int index,
JdbcDataSource vJdbcDataSource) |
void |
setJdbcDataSource(JdbcDataSource[] vJdbcDataSourceArray) |
void |
setJdbcDataSource(List<JdbcDataSource> vJdbcDataSourceList)
Sets the value of '_jdbcDataSourceList' by copying the given
Vector.
|
void |
setJdbcDataSourceCollection(List<JdbcDataSource> jdbcDataSourceList)
Deprecated.
|
static DataSourceConfiguration |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addJdbcDataSource(JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException
vJdbcDataSource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addJdbcDataSource(int index, JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException
index
- vJdbcDataSource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<JdbcDataSource> enumerateJdbcDataSource()
public boolean equals(Object obj)
public ConnectionPool getConnectionPool()
public JdbcDataSource getJdbcDataSource(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic JdbcDataSource[] getJdbcDataSource()
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<JdbcDataSource> getJdbcDataSourceCollection()
public int getJdbcDataSourceCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<JdbcDataSource> iterateJdbcDataSource()
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 removeAllJdbcDataSource()
public boolean removeJdbcDataSource(JdbcDataSource vJdbcDataSource)
vJdbcDataSource
- public JdbcDataSource removeJdbcDataSourceAt(int index)
index
- public void setConnectionPool(ConnectionPool connectionPool)
connectionPool
- the value of field 'connectionPool'.public void setJdbcDataSource(int index, JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException
index
- vJdbcDataSource
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setJdbcDataSource(JdbcDataSource[] vJdbcDataSourceArray)
vJdbcDataSourceArray
- public void setJdbcDataSource(List<JdbcDataSource> vJdbcDataSourceList)
vJdbcDataSourceList
- the Vector to copy.public void setJdbcDataSourceCollection(List<JdbcDataSource> jdbcDataSourceList)
jdbcDataSourceList
- the Vector to set.public static DataSourceConfiguration 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.