T - public class EntityHolderJpa<T> extends Object implements EntityHolder<T>
| Constructor and Description |
|---|
EntityHolderJpa(javax.persistence.EntityManagerFactory emf,
Class<T> clazz,
Serializable id) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
T |
getEntity() |
void |
openSession()
Must be called prior to making changes to the entity.
|
public EntityHolderJpa(javax.persistence.EntityManagerFactory emf,
Class<T> clazz,
Serializable id)
public T getEntity()
getEntity in interface EntityHolder<T>public void openSession()
EntityHolderopenSession in interface EntityHolder<T>public void commit()
commit in interface EntityHolder<T>Copyright © 2015. All rights reserved.