Class DatasourcesTypeImpl<T>
java.lang.Object
org.jboss.jca.embedded.dsl.datasources11.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 the
datasourcesType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionDatasourcesTypeImpl(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
Modifier and TypeMethodDescriptionCreates a newdatasourceelementCreates a newxa-datasourceelementReturns alldatasourceelementsReturns allxa-datasourceelementsIf not already created, a newdatasourceelement will be created and returned.If not already created, a newdriverselement with the given value will be created.If not already created, a newxa-datasourceelement will be created and returned.Removes alldatasourceelementsRemoves allxa-datasourceelementsRemoves thedriverselementup()
-
Constructor Details
-
DatasourcesTypeImpl
-
DatasourcesTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<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
Creates a newdatasourceelement- Specified by:
createDatasourcein interfaceDatasourcesType<T>- Returns:
- the new created instance of
DatasourceTypeinvalid input: '<'DatasourcesType>
-
getAllDatasource
Returns alldatasourceelements- Specified by:
getAllDatasourcein interfaceDatasourcesType<T>- Returns:
- list of
datasource
-
removeAllDatasource
Removes alldatasourceelements- Specified by:
removeAllDatasourcein interfaceDatasourcesType<T>- Returns:
- the current instance of
DatasourceTypeinvalid input: '<'DatasourcesType>
-
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
Creates a newxa-datasourceelement- Specified by:
createXaDatasourcein interfaceDatasourcesType<T>- Returns:
- the new created instance of
XaDatasourceTypeinvalid input: '<'DatasourcesType>
-
getAllXaDatasource
Returns allxa-datasourceelements- Specified by:
getAllXaDatasourcein interfaceDatasourcesType<T>- Returns:
- list of
xa-datasource
-
removeAllXaDatasource
Removes allxa-datasourceelements- Specified by:
removeAllXaDatasourcein interfaceDatasourcesType<T>- Returns:
- the current instance of
XaDatasourceTypeinvalid input: '<'DatasourcesType>
-
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
DriversTypeinvalid input: '<'DatasourcesType>
-
removeDrivers
Removes thedriverselement- Specified by:
removeDriversin interfaceDatasourcesType<T>- Returns:
- the current instance of
DatasourcesType
-