public class DatasourcesImpl extends java.lang.Object implements DataSources
DataSources.Tag
Constructor and Description |
---|
DatasourcesImpl(java.util.List<DataSource> datasource,
java.util.List<XaDataSource> xaDataSource,
java.util.Map<java.lang.String,Driver> drivers)
Create a new DatasourcesImpl.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<DataSource> |
getDataSource()
Get the datasource.
|
Driver |
getDriver(java.lang.String name)
Get the driver with given name
|
java.util.List<Driver> |
getDrivers()
Get the list of drivers
|
java.util.List<XaDataSource> |
getXaDataSource()
Get the xaDataSource.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
validate()
Validate this metadata according validation required by specification
|
public DatasourcesImpl(java.util.List<DataSource> datasource, java.util.List<XaDataSource> xaDataSource, java.util.Map<java.lang.String,Driver> drivers) throws ValidateException
datasource
- datasourcexaDataSource
- xaDataSourcedrivers
- driversValidateException
- ValidateExceptionpublic final java.util.List<DataSource> getDataSource()
getDataSource
in interface DataSources
public final java.util.List<XaDataSource> getXaDataSource()
getXaDataSource
in interface DataSources
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws ValidateException
ValidatableMetadata
validate
in interface ValidatableMetadata
ValidateException
- in case of validation failpublic Driver getDriver(java.lang.String name)
DataSources
getDriver
in interface DataSources
name
- driver's namepublic java.util.List<Driver> getDrivers()
DataSources
getDrivers
in interface DataSources
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)