Package io.helidon.integrations.cdi.jpa
Interface PersistenceUnitInfoBean.DataSourceProvider
-
- Enclosing class:
- PersistenceUnitInfoBean
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface PersistenceUnitInfoBean.DataSourceProvider
A functional interface indicating that its implementations can supplyDataSources.- See Also:
getDataSource(boolean, boolean, String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSourcegetDataSource(boolean jta, boolean useDefaultJta, String dataSourceName)Supplies aDataSource.
-
-
-
Method Detail
-
getDataSource
DataSource getDataSource(boolean jta, boolean useDefaultJta, String dataSourceName)
Supplies aDataSource.Implementations of this method are permitted to return
null.- Parameters:
jta- iftrue, theDataSourcethat is returned may be enrolled in JTA-compliant transactionsuseDefaultJta- iftrue, and if thejtaparameter value istrue, the supplieddataSourceNamemay be ignored and a defaultDataSourceeligible for enrolling in JTA-compliant transactions will be returned if possibledataSourceName- the name of theDataSourceto return; may benull; ignored if bothjtaanduseDefaultJtaaretrue- Returns:
- an appropriate
DataSource, ornull - See Also:
PersistenceUnitInfoBean.getJtaDataSource(),PersistenceUnitInfoBean.getNonJtaDataSource()
-
-