Interface DatasourcesType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
DatasourcesTypeImpl
public interface DatasourcesType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for thedatasourcesTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DatasourceType<DatasourcesType<T>>createDatasource()Creates a newdatasourceelementXaDatasourceType<DatasourcesType<T>>createXaDatasource()Creates a newxa-datasourceelementList<DatasourceType<DatasourcesType<T>>>getAllDatasource()Returns alldatasourceelementsList<XaDatasourceType<DatasourcesType<T>>>getAllXaDatasource()Returns allxa-datasourceelementsDatasourceType<DatasourcesType<T>>getOrCreateDatasource()If not already created, a newdatasourceelement will be created and returned.DriversType<DatasourcesType<T>>getOrCreateDrivers()If not already created, a newdriverselement with the given value will be created.XaDatasourceType<DatasourcesType<T>>getOrCreateXaDatasource()If not already created, a newxa-datasourceelement will be created and returned.DatasourcesType<T>removeAllDatasource()Removes alldatasourceelementsDatasourcesType<T>removeAllXaDatasource()Removes allxa-datasourceelementsDatasourcesType<T>removeDrivers()Removes thedriverselement
-
-
-
Method Detail
-
getOrCreateDatasource
DatasourceType<DatasourcesType<T>> getOrCreateDatasource()
If not already created, a newdatasourceelement will be created and returned. Otherwise, the first existingdatasourceelement will be returned.- Returns:
- the instance defined for the element
datasource
-
createDatasource
DatasourceType<DatasourcesType<T>> createDatasource()
Creates a newdatasourceelement- Returns:
- the new created instance of
DatasourceType>
-
getAllDatasource
List<DatasourceType<DatasourcesType<T>>> getAllDatasource()
Returns alldatasourceelements- Returns:
- list of
datasource
-
removeAllDatasource
DatasourcesType<T> removeAllDatasource()
Removes alldatasourceelements- Returns:
- the current instance of
DatasourceType>
-
getOrCreateXaDatasource
XaDatasourceType<DatasourcesType<T>> getOrCreateXaDatasource()
If not already created, a newxa-datasourceelement will be created and returned. Otherwise, the first existingxa-datasourceelement will be returned.- Returns:
- the instance defined for the element
xa-datasource
-
createXaDatasource
XaDatasourceType<DatasourcesType<T>> createXaDatasource()
Creates a newxa-datasourceelement- Returns:
- the new created instance of
XaDatasourceType>
-
getAllXaDatasource
List<XaDatasourceType<DatasourcesType<T>>> getAllXaDatasource()
Returns allxa-datasourceelements- Returns:
- list of
xa-datasource
-
removeAllXaDatasource
DatasourcesType<T> removeAllXaDatasource()
Removes allxa-datasourceelements- Returns:
- the current instance of
XaDatasourceType>
-
getOrCreateDrivers
DriversType<DatasourcesType<T>> getOrCreateDrivers()
If not already created, a newdriverselement with the given value will be created. Otherwise, the existingdriverselement will be returned.- Returns:
- a new or existing instance of
DriversType>
-
removeDrivers
DatasourcesType<T> removeDrivers()
Removes thedriverselement- Returns:
- the current instance of
DatasourcesType
-
-