| Package | Description |
|---|---|
| io.helidon.integrations.cdi.jpa |
Provides classes and interfaces that integrate the
provider-independent parts of JPA into CDI.
|
| Modifier and Type | Method and Description |
|---|---|
static PersistenceUnitInfoBean |
PersistenceUnitInfoBean.fromPersistenceUnit(Persistence.PersistenceUnit persistenceUnit,
ClassLoader classLoader,
Supplier<? extends ClassLoader> tempClassLoaderSupplier,
URL rootUrl,
Map<? extends String,? extends Set<? extends Class<?>>> unlistedClasses,
PersistenceUnitInfoBean.DataSourceProvider dataSourceProvider)
Given a
Persistence.PersistenceUnit (a Java object representation
of a <persistence-unit> element in a META-INF/persistence.xml resource), a ClassLoader for
loading JPA classes and resources, a Supplier of ClassLoader instances for helping to implement the PersistenceUnitInfo.getNewTempClassLoader() method, a URL representing the persistence unit's root, a Map of
unlisted managed classes (entity classes, mapped superclasses
and so on) indexed by persistence unit name, and a PersistenceUnitInfoBean.DataSourceProvider that can provide DataSource
instances, returns a PersistenceUnitInfoBean
representing the persistence unit in question. |
static PersistenceUnitInfoBean |
PersistenceUnitInfoBean.fromPersistenceUnit(Persistence.PersistenceUnit persistenceUnit,
URL rootUrl,
Map<? extends String,? extends Set<? extends Class<?>>> unlistedClasses,
PersistenceUnitInfoBean.DataSourceProvider dataSourceProvider)
Given a
Persistence.PersistenceUnit (a Java object representation
of a <persistence-unit> element in a META-INF/persistence.xml resource), a URL representing
the persistence unit's root, a Map of unlisted managed
classes (entity classes, mapped superclasses and so on) indexed
by persistence unit name, and a PersistenceUnitInfoBean.DataSourceProvider that
can supply DataSource instances, returns a PersistenceUnitInfoBean representing the persistence unit in
question. |
| Modifier and Type | Method and Description |
|---|---|
static Collection<? extends PersistenceUnitInfoBean> |
PersistenceUnitInfoBean.fromPersistence(Persistence persistence,
ClassLoader classLoader,
Supplier<? extends ClassLoader> tempClassLoaderSupplier,
URL rootUrl,
Map<? extends String,? extends Set<? extends Class<?>>> unlistedClasses,
PersistenceUnitInfoBean.DataSourceProvider dataSourceProvider)
Given a
Persistence (a Java object representation of a
META-INF/persistence.xml resource), a URL
representing the root of all persistence units, a Map
of unlisted managed classes (entity classes, mapped
superclasses and so on) indexed by persistence unit name, and a
PersistenceUnitInfoBean.DataSourceProvider that can provide DataSource
instances, returns a Collection of PersistenceUnitInfoBean instances representing all the
persistence units in play. |
Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.