org.jboss.datasources.api
Interface DatasourcesType<T>

All Superinterfaces:
Child<T>
All Known Implementing Classes:
DatasourcesTypeImpl

public interface DatasourcesType<T>
extends Child<T>

This interface defines the contract for the datasourcesType xsd type

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

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
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

getOrCreateDatasource

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.

Returns:
the instance defined for the element datasource

createDatasource

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

Returns:
the new created instance of DatasourceType>

getAllDatasource

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

Returns:
list of datasource

removeAllDatasource

DatasourcesType<T> removeAllDatasource()
Removes all datasource elements

Returns:
the current instance of DatasourceType>

getOrCreateXaDatasource

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.

Returns:
the instance defined for the element xa-datasource

createXaDatasource

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

Returns:
the new created instance of XaDatasourceType>

getAllXaDatasource

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

Returns:
list of xa-datasource

removeAllXaDatasource

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

Returns:
the current instance of XaDatasourceType>

getOrCreateDrivers

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.

Returns:
a new or existing instance of DriversType>

removeDrivers

DatasourcesType<T> removeDrivers()
Removes the drivers element

Returns:
the current instance of DatasourcesType


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