org.jboss.datasources.impl
Class DatasourcesTypeImpl<T>

java.lang.Object
  extended by org.jboss.datasources.impl.DatasourcesTypeImpl<T>
All Implemented Interfaces:
DatasourcesType<T>, Child<T>

public class DatasourcesTypeImpl<T>
extends Object
implements Child<T>, DatasourcesType<T>

This class implements the datasourcesType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasourcesTypeImpl

public DatasourcesTypeImpl(T t,
                           String nodeName,
                           org.jboss.shrinkwrap.descriptor.spi.node.Node node)

DatasourcesTypeImpl

public DatasourcesTypeImpl(T t,
                           String nodeName,
                           org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                           org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

getOrCreateDatasource

public DatasourceType<DatasourcesType<T>> getOrCreateDatasource()
If not already created, a new datasource element will be created and returned. Otherwise, the first existing datasource element will be returned.

Specified by:
getOrCreateDatasource in interface DatasourcesType<T>
Returns:
the instance defined for the element datasource

createDatasource

public DatasourceType<DatasourcesType<T>> createDatasource()
Creates a new datasource element

Specified by:
createDatasource in interface DatasourcesType<T>
Returns:
the new created instance of DatasourceType>

getAllDatasource

public List<DatasourceType<DatasourcesType<T>>> getAllDatasource()
Returns all datasource elements

Specified by:
getAllDatasource in interface DatasourcesType<T>
Returns:
list of datasource

removeAllDatasource

public DatasourcesType<T> removeAllDatasource()
Removes all datasource elements

Specified by:
removeAllDatasource in interface DatasourcesType<T>
Returns:
the current instance of DatasourceType>

getOrCreateXaDatasource

public XaDatasourceType<DatasourcesType<T>> getOrCreateXaDatasource()
If not already created, a new xa-datasource element will be created and returned. Otherwise, the first existing xa-datasource element will be returned.

Specified by:
getOrCreateXaDatasource in interface DatasourcesType<T>
Returns:
the instance defined for the element xa-datasource

createXaDatasource

public XaDatasourceType<DatasourcesType<T>> createXaDatasource()
Creates a new xa-datasource element

Specified by:
createXaDatasource in interface DatasourcesType<T>
Returns:
the new created instance of XaDatasourceType>

getAllXaDatasource

public List<XaDatasourceType<DatasourcesType<T>>> getAllXaDatasource()
Returns all xa-datasource elements

Specified by:
getAllXaDatasource in interface DatasourcesType<T>
Returns:
list of xa-datasource

removeAllXaDatasource

public DatasourcesType<T> removeAllXaDatasource()
Removes all xa-datasource elements

Specified by:
removeAllXaDatasource in interface DatasourcesType<T>
Returns:
the current instance of XaDatasourceType>

getOrCreateDrivers

public DriversType<DatasourcesType<T>> getOrCreateDrivers()
If not already created, a new drivers element with the given value will be created. Otherwise, the existing drivers element will be returned.

Specified by:
getOrCreateDrivers in interface DatasourcesType<T>
Returns:
a new or existing instance of DriversType>

removeDrivers

public DatasourcesType<T> removeDrivers()
Removes the drivers element

Specified by:
removeDrivers in interface DatasourcesType<T>
Returns:
the current instance of DatasourcesType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.