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.
A functional interface
indicating that its implementations can supply
DataSources.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetDataSource(boolean jta, boolean useDefaultJta, String dataSourceName) Supplies aDataSource.
-
Method Details
-
getDataSource
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:
-