E - the entity type.PK - the primary key type.public class HistoricalGenericDao<E extends HistoricalEntity<PK>,PK> extends GenericDao<E,PK>
| Constructor and Description |
|---|
HistoricalGenericDao(Class<E> inEntityClass,
javax.inject.Provider<javax.persistence.EntityManager> inManagerProvider) |
| Modifier and Type | Method and Description |
|---|---|
E |
create(E entity)
Creates an entity in the database.
|
List<E> |
getCurrent() |
E |
updateCurrent(E entity) |
getAll, getDatabaseSupport, getEntityClass, getEntityManager, getListAsc, getListByAttribute, getListByAttribute, getListByAttributeIn, getListByAttributeIn, getUniqueByAttribute, getUniqueByAttribute, refresh, remove, retrieve, updatepublic E create(E entity)
GenericDaoEntityManager.persist(java.lang.Object) and throws the same
exceptions.create in interface Dao<E extends HistoricalEntity<PK>,PK>create in class GenericDao<E extends HistoricalEntity<PK>,PK>entity - the entity to create.Copyright © 2016–2018 Emory University. All rights reserved.