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.HashMap<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.HashMap<java.lang.String,Driver> drivers) throws ValidateException
datasource - datasourcexaDataSource - xaDataSourcedrivers - driversValidateException - ValidateExceptionpublic final java.util.List<DataSource> getDataSource()
getDataSource in interface DataSourcespublic final java.util.List<XaDataSource> getXaDataSource()
getXaDataSource in interface DataSourcespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws ValidateException
ValidatableMetadatavalidate in interface ValidatableMetadataValidateException - in case of validation failpublic Driver getDriver(java.lang.String name)
DataSourcesgetDriver in interface DataSourcesname - driver's namepublic java.util.List<Driver> getDrivers()
DataSourcesgetDrivers in interface DataSourcesCopyright ? 2008 Red Hat Middleware LLC (http://www.jboss.com/)