public class DatasourcesTypeImpl<T> extends Object implements Child<T>, DatasourcesType<T>
datasourcesType
xsd typeConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
DatasourceType<DatasourcesType<T>> |
createDatasource()
Creates a new
datasource element |
XaDatasourceType<DatasourcesType<T>> |
createXaDatasource()
Creates a new
xa-datasource element |
List<DatasourceType<DatasourcesType<T>>> |
getAllDatasource()
Returns all
datasource elements |
List<XaDatasourceType<DatasourcesType<T>>> |
getAllXaDatasource()
Returns all
xa-datasource elements |
DatasourceType<DatasourcesType<T>> |
getOrCreateDatasource()
If not already created, a new
datasource element will be created and returned. |
DriversType<DatasourcesType<T>> |
getOrCreateDrivers()
If not already created, a new
drivers element with the given value will be created. |
XaDatasourceType<DatasourcesType<T>> |
getOrCreateXaDatasource()
If not already created, a new
xa-datasource element will be created and returned. |
DatasourcesType<T> |
removeAllDatasource()
Removes all
datasource elements |
DatasourcesType<T> |
removeAllXaDatasource()
Removes all
xa-datasource elements |
DatasourcesType<T> |
removeDrivers()
Removes the
drivers element |
T |
up()
Returns the parent of this
Child |
public DatasourcesTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public DatasourceType<DatasourcesType<T>> getOrCreateDatasource()
datasource
element will be created and returned.
Otherwise, the first existing datasource
element will be returned.getOrCreateDatasource
in interface DatasourcesType<T>
datasource
public DatasourceType<DatasourcesType<T>> createDatasource()
datasource
elementcreateDatasource
in interface DatasourcesType<T>
DatasourceType>
public List<DatasourceType<DatasourcesType<T>>> getAllDatasource()
datasource
elementsgetAllDatasource
in interface DatasourcesType<T>
datasource
public DatasourcesType<T> removeAllDatasource()
datasource
elementsremoveAllDatasource
in interface DatasourcesType<T>
DatasourceType>
public XaDatasourceType<DatasourcesType<T>> getOrCreateXaDatasource()
xa-datasource
element will be created and returned.
Otherwise, the first existing xa-datasource
element will be returned.getOrCreateXaDatasource
in interface DatasourcesType<T>
xa-datasource
public XaDatasourceType<DatasourcesType<T>> createXaDatasource()
xa-datasource
elementcreateXaDatasource
in interface DatasourcesType<T>
XaDatasourceType>
public List<XaDatasourceType<DatasourcesType<T>>> getAllXaDatasource()
xa-datasource
elementsgetAllXaDatasource
in interface DatasourcesType<T>
xa-datasource
public DatasourcesType<T> removeAllXaDatasource()
xa-datasource
elementsremoveAllXaDatasource
in interface DatasourcesType<T>
XaDatasourceType>
public DriversType<DatasourcesType<T>> getOrCreateDrivers()
drivers
element with the given value will be created.
Otherwise, the existing drivers
element will be returned.getOrCreateDrivers
in interface DatasourcesType<T>
DriversType>
public DatasourcesType<T> removeDrivers()
drivers
elementremoveDrivers
in interface DatasourcesType<T>
DatasourcesType
Copyright © 2014 JBoss by Red Hat. All rights reserved.