@FunctionalInterface public static interface PersistenceUnitInfoBean.DataSourceProvider
DataSources.getDataSource(boolean, boolean, String)| Modifier and Type | Method and Description |
|---|---|
DataSource |
getDataSource(boolean jta,
boolean useDefaultJta,
String dataSourceName)
Supplies a
DataSource. |
DataSource getDataSource(boolean jta, boolean useDefaultJta, String dataSourceName)
DataSource.
Implementations of this method are permitted to return
null.
jta - if true, the DataSource that is
returned may be enrolled in JTA-compliant transactionsuseDefaultJta - if true, and if the jta parameter value is true, the supplied dataSourceName may be ignored and a default DataSource eligible for enrolling in JTA-compliant
transactions will be returned if possibledataSourceName - the name of the DataSource to
return; may be null; ignored if both jta
and useDefaultJta are trueDataSource, or nullPersistenceUnitInfoBean.getJtaDataSource(),
PersistenceUnitInfoBean.getNonJtaDataSource()Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.