EntityManager and
its associated persistence context.
| Modifier and Type | Method and Description |
|---|---|
| public String | name()
(Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. |
| public PersistenceProperty[] | |
| public SynchronizationType | synchronization()
(Optional) Specifies whether the persistence context is always
automatically synchronized with the current transaction or whether
the persistence context must be explicitly joined to the current
transaction by means of the |
| public PersistenceContextType | type()
(Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. |
| public String |
| name | back to summary |
|---|---|
| public String name() (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. | |
| properties | back to summary |
|---|---|
| public PersistenceProperty[] properties() (Optional) Properties for the container or persistence provider. Vendor specific properties may be included in this set of properties. Properties that are not recognized by a vendor are ignored. | |
| synchronization | back to summary |
|---|---|
| public SynchronizationType synchronization() (Optional) Specifies whether the persistence context is always
automatically synchronized with the current transaction or whether
the persistence context must be explicitly joined to the current
transaction by means of the
| |
| type | back to summary |
|---|---|
| public PersistenceContextType type() (Optional) Specifies whether a transaction-scoped persistence context or an extended persistence context is to be used. | |
| unitName | back to summary |
|---|---|
| public String unitName() (Optional) The name of the persistence unit as defined in the
| |