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 Details

    • 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<DatasourcesType>
    • 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<DatasourcesType>
    • 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<DatasourcesType>
    • 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<DatasourcesType>
    • 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<DatasourcesType>
    • removeDrivers

      DatasourcesType<T> removeDrivers()
      Removes the drivers element
      Returns:
      the current instance of DatasourcesType