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 the
datasourcesType xsd type-
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 thedriverselementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
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
DatasourceTypeinvalid input: '<'DatasourcesType>
-
getAllDatasource
List<DatasourceType<DatasourcesType<T>>> getAllDatasource()Returns alldatasourceelements- Returns:
- list of
datasource
-
removeAllDatasource
DatasourcesType<T> removeAllDatasource()Removes alldatasourceelements- Returns:
- the current instance of
DatasourceTypeinvalid input: '<'DatasourcesType>
-
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
XaDatasourceTypeinvalid input: '<'DatasourcesType>
-
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
XaDatasourceTypeinvalid input: '<'DatasourcesType>
-
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
DriversTypeinvalid input: '<'DatasourcesType>
-
removeDrivers
DatasourcesType<T> removeDrivers()Removes thedriverselement- Returns:
- the current instance of
DatasourcesType
-