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