|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatasourcesDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
DatasourcesDescriptor descriptor = Descriptors.create(DatasourcesDescriptor.class);
Method Summary | |
---|---|
DatasourceType<DatasourcesDescriptor> |
createDatasource()
Creates a new datasource element |
XaDatasourceType<DatasourcesDescriptor> |
createXaDatasource()
Creates a new xa-datasource element |
List<DatasourceType<DatasourcesDescriptor>> |
getAllDatasource()
Returns all datasource elements |
List<XaDatasourceType<DatasourcesDescriptor>> |
getAllXaDatasource()
Returns all xa-datasource elements |
DatasourceType<DatasourcesDescriptor> |
getOrCreateDatasource()
If not already created, a new datasource element will be created and returned. |
DriversType<DatasourcesDescriptor> |
getOrCreateDrivers()
If not already created, a new drivers element with the given value will be created. |
XaDatasourceType<DatasourcesDescriptor> |
getOrCreateXaDatasource()
If not already created, a new xa-datasource element will be created and returned. |
DatasourcesDescriptor |
removeAllDatasource()
Removes all datasource elements |
DatasourcesDescriptor |
removeAllXaDatasource()
Removes all xa-datasource elements |
DatasourcesDescriptor |
removeDrivers()
Removes the drivers element |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace |
---|
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces |
Method Detail |
---|
DatasourceType<DatasourcesDescriptor> getOrCreateDatasource()
datasource
element will be created and returned.
Otherwise, the first existing datasource
element will be returned.
datasource
DatasourceType<DatasourcesDescriptor> createDatasource()
datasource
element
DatasourceType
List<DatasourceType<DatasourcesDescriptor>> getAllDatasource()
datasource
elements
datasource
DatasourcesDescriptor removeAllDatasource()
datasource
elements
DatasourceType
XaDatasourceType<DatasourcesDescriptor> getOrCreateXaDatasource()
xa-datasource
element will be created and returned.
Otherwise, the first existing xa-datasource
element will be returned.
xa-datasource
XaDatasourceType<DatasourcesDescriptor> createXaDatasource()
xa-datasource
element
XaDatasourceType
List<XaDatasourceType<DatasourcesDescriptor>> getAllXaDatasource()
xa-datasource
elements
xa-datasource
DatasourcesDescriptor removeAllXaDatasource()
xa-datasource
elements
XaDatasourceType
DriversType<DatasourcesDescriptor> getOrCreateDrivers()
drivers
element with the given value will be created.
Otherwise, the existing drivers
element will be returned.
DriversType
DatasourcesDescriptor removeDrivers()
drivers
element
DatasourcesDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |