Class DataSourceConfiguration
- java.lang.Object
- 
- org.opennms.netmgt.config.opennmsDataSources.DataSourceConfiguration
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class DataSourceConfiguration extends Object implements Serializable Top Level element for opennms-datasources.xml... a list of data sources to be used within OpenNMS.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DataSourceConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddJdbcDataSource(int index, JdbcDataSource vJdbcDataSource)voidaddJdbcDataSource(JdbcDataSource vJdbcDataSource)Enumeration<JdbcDataSource>enumerateJdbcDataSource()Method enumerateJdbcDataSource.booleanequals(Object obj)Overrides the Object.equals method.ConnectionPoolgetConnectionPool()Returns the value of field 'connectionPool'.JdbcDataSource[]getJdbcDataSource()Method getJdbcDataSource.Returns the contents of the collection in an Array.JdbcDataSourcegetJdbcDataSource(int index)Method getJdbcDataSource.List<JdbcDataSource>getJdbcDataSourceCollection()Method getJdbcDataSourceCollection.Returns a reference to 'jdbcDataSourceList'.intgetJdbcDataSourceCount()Method getJdbcDataSourceCount.inthashCode()Method hashCode.Iterator<JdbcDataSource>iterateJdbcDataSource()Method iterateJdbcDataSource.voidremoveAllJdbcDataSource()booleanremoveJdbcDataSource(JdbcDataSource vJdbcDataSource)Method removeJdbcDataSource.JdbcDataSourceremoveJdbcDataSourceAt(int index)Method removeJdbcDataSourceAt.voidsetConnectionPool(ConnectionPool connectionPool)Sets the value of field 'connectionPool'.voidsetJdbcDataSource(int index, JdbcDataSource vJdbcDataSource)voidsetJdbcDataSource(List<JdbcDataSource> vJdbcDataSourceList)Sets the value of 'jdbcDataSourceList' by copying the given Vector.voidsetJdbcDataSource(JdbcDataSource[] vJdbcDataSourceArray)voidsetJdbcDataSourceCollection(List<JdbcDataSource> jdbcDataSourceList)Deprecated.
 
- 
- 
- 
Method Detail- 
addJdbcDataSourcepublic void addJdbcDataSource(JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException - Parameters:
- vJdbcDataSource-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
addJdbcDataSourcepublic void addJdbcDataSource(int index, JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException- Parameters:
- index-
- vJdbcDataSource-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
enumerateJdbcDataSourcepublic Enumeration<JdbcDataSource> enumerateJdbcDataSource() Method enumerateJdbcDataSource.- Returns:
- an Enumeration over all possible elements of this collection
 
 - 
equalspublic boolean equals(Object obj) Overrides the Object.equals method.
 - 
getConnectionPoolpublic ConnectionPool getConnectionPool() Returns the value of field 'connectionPool'. The field 'connectionPool' has the following description: Database connection pool configuration.- Returns:
- the value of field 'ConnectionPool'.
 
 - 
getJdbcDataSourcepublic JdbcDataSource getJdbcDataSource(int index) throws IndexOutOfBoundsException Method getJdbcDataSource.- Parameters:
- index-
- Returns:
- the value of the JdbcDataSource at the given index
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
getJdbcDataSourcepublic JdbcDataSource[] getJdbcDataSource() Method getJdbcDataSource.Returns the contents of the collection in an Array.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. - Returns:
- this collection as an Array
 
 - 
getJdbcDataSourceCollectionpublic List<JdbcDataSource> getJdbcDataSourceCollection() Method getJdbcDataSourceCollection.Returns a reference to 'jdbcDataSourceList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
 
 - 
getJdbcDataSourceCountpublic int getJdbcDataSourceCount() Method getJdbcDataSourceCount.- Returns:
- the size of this collection
 
 - 
hashCodepublic int hashCode() Method hashCode.
 - 
iterateJdbcDataSourcepublic Iterator<JdbcDataSource> iterateJdbcDataSource() Method iterateJdbcDataSource.- Returns:
- an Iterator over all possible elements in this collection
 
 - 
removeAllJdbcDataSourcepublic void removeAllJdbcDataSource() 
 - 
removeJdbcDataSourcepublic boolean removeJdbcDataSource(JdbcDataSource vJdbcDataSource) Method removeJdbcDataSource.- Parameters:
- vJdbcDataSource-
- Returns:
- true if the object was removed from the collection.
 
 - 
removeJdbcDataSourceAtpublic JdbcDataSource removeJdbcDataSourceAt(int index) Method removeJdbcDataSourceAt.- Parameters:
- index-
- Returns:
- the element removed from the collection
 
 - 
setConnectionPoolpublic void setConnectionPool(ConnectionPool connectionPool) Sets the value of field 'connectionPool'. The field 'connectionPool' has the following description: Database connection pool configuration.- Parameters:
- connectionPool- the value of field 'connectionPool'.
 
 - 
setJdbcDataSourcepublic void setJdbcDataSource(int index, JdbcDataSource vJdbcDataSource) throws IndexOutOfBoundsException- Parameters:
- index-
- vJdbcDataSource-
- Throws:
- IndexOutOfBoundsException- if the index given is outside the bounds of the collection
 
 - 
setJdbcDataSourcepublic void setJdbcDataSource(JdbcDataSource[] vJdbcDataSourceArray) - Parameters:
- vJdbcDataSourceArray-
 
 - 
setJdbcDataSourcepublic void setJdbcDataSource(List<JdbcDataSource> vJdbcDataSourceList) Sets the value of 'jdbcDataSourceList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
- vJdbcDataSourceList- the Vector to copy.
 
 - 
setJdbcDataSourceCollectionpublic void setJdbcDataSourceCollection(List<JdbcDataSource> jdbcDataSourceList) Deprecated.Sets the value of 'jdbcDataSourceList' by setting it to the given Vector. No type checking is performed.- Parameters:
- jdbcDataSourceList- the Vector to set.
 
 
- 
 
-