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 supplyDataSource
s.- See Also:
getDataSource(boolean, boolean, String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataSource
getDataSource(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
, theDataSource
that is returned may be enrolled in JTA-compliant transactionsuseDefaultJta
- iftrue
, and if thejta
parameter value istrue
, the supplieddataSourceName
may be ignored and a defaultDataSource
eligible for enrolling in JTA-compliant transactions will be returned if possibledataSourceName
- the name of theDataSource
to return; may benull
; ignored if bothjta
anduseDefaultJta
aretrue
- Returns:
- an appropriate
DataSource
, ornull
- See Also:
PersistenceUnitInfoBean.getJtaDataSource()
,PersistenceUnitInfoBean.getNonJtaDataSource()
-
-