Class DatasourcesTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.datasources10.impl.DatasourcesTypeImpl<T>
-
- All Implemented Interfaces:
DatasourcesType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class DatasourcesTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DatasourcesType<T>
This class implements thedatasourcesTypexsd type
-
-
Constructor Summary
Constructors Constructor Description DatasourcesTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)DatasourcesTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete 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 thedriverselementTup()
-
-
-
Method Detail
-
getOrCreateDatasource
public DatasourceType<DatasourcesType<T>> getOrCreateDatasource()
If not already created, a newdatasourceelement will be created and returned. Otherwise, the first existingdatasourceelement will be returned.- Specified by:
getOrCreateDatasourcein interfaceDatasourcesType<T>- Returns:
- the instance defined for the element
datasource
-
createDatasource
public DatasourceType<DatasourcesType<T>> createDatasource()
Creates a newdatasourceelement- Specified by:
createDatasourcein interfaceDatasourcesType<T>- Returns:
- the new created instance of
DatasourceType>
-
getAllDatasource
public List<DatasourceType<DatasourcesType<T>>> getAllDatasource()
Returns alldatasourceelements- Specified by:
getAllDatasourcein interfaceDatasourcesType<T>- Returns:
- list of
datasource
-
removeAllDatasource
public DatasourcesType<T> removeAllDatasource()
Removes alldatasourceelements- Specified by:
removeAllDatasourcein interfaceDatasourcesType<T>- Returns:
- the current instance of
DatasourceType>
-
getOrCreateXaDatasource
public XaDatasourceType<DatasourcesType<T>> getOrCreateXaDatasource()
If not already created, a newxa-datasourceelement will be created and returned. Otherwise, the first existingxa-datasourceelement will be returned.- Specified by:
getOrCreateXaDatasourcein interfaceDatasourcesType<T>- Returns:
- the instance defined for the element
xa-datasource
-
createXaDatasource
public XaDatasourceType<DatasourcesType<T>> createXaDatasource()
Creates a newxa-datasourceelement- Specified by:
createXaDatasourcein interfaceDatasourcesType<T>- Returns:
- the new created instance of
XaDatasourceType>
-
getAllXaDatasource
public List<XaDatasourceType<DatasourcesType<T>>> getAllXaDatasource()
Returns allxa-datasourceelements- Specified by:
getAllXaDatasourcein interfaceDatasourcesType<T>- Returns:
- list of
xa-datasource
-
removeAllXaDatasource
public DatasourcesType<T> removeAllXaDatasource()
Removes allxa-datasourceelements- Specified by:
removeAllXaDatasourcein interfaceDatasourcesType<T>- Returns:
- the current instance of
XaDatasourceType>
-
getOrCreateDrivers
public DriversType<DatasourcesType<T>> getOrCreateDrivers()
If not already created, a newdriverselement with the given value will be created. Otherwise, the existingdriverselement will be returned.- Specified by:
getOrCreateDriversin interfaceDatasourcesType<T>- Returns:
- a new or existing instance of
DriversType>
-
removeDrivers
public DatasourcesType<T> removeDrivers()
Removes thedriverselement- Specified by:
removeDriversin interfaceDatasourcesType<T>- Returns:
- the current instance of
DatasourcesType
-
-