public class JpaPhenotypeEntityDao extends org.eurekaclinical.standardapis.dao.GenericDao<PhenotypeEntity,Long> implements PhenotypeEntityDao
PhenotypeEntityDao interface, backed by
JPA entities and queries.| Constructor and Description |
|---|
JpaPhenotypeEntityDao(com.google.inject.Provider<javax.persistence.EntityManager> inProvider)
Create an object with the given entity manager provider.
|
| Modifier and Type | Method and Description |
|---|---|
PhenotypeEntity |
getById(Long inId)
Gets a user-defined phenotype entity based on the given id
|
PhenotypeEntity |
getByUserAndKey(Long inUserId,
String inKey)
Gets a user-defined phenotype entity based on the "key" attribute.
|
List<PhenotypeEntity> |
getByUserId(Long inUserId)
Gets a list of user-defined phenotype entities for the given user ID.
|
PhenotypeEntity |
getUserOrSystemByUserAndKey(Long inUserId,
String inKey)
Gets a system proposition definition that has been loaded previously
into the database.
|
create, getAll, getEntityManager, getListAsc, getListByAttribute, getListByAttribute, getListByAttribute, getUniqueByAttribute, getUniqueByAttribute, refresh, remove, retrieve, update@Inject public JpaPhenotypeEntityDao(com.google.inject.Provider<javax.persistence.EntityManager> inProvider)
inProvider - An entity manager provider.public PhenotypeEntity getByUserAndKey(Long inUserId, String inKey)
PhenotypeEntityDaogetByUserAndKey in interface PhenotypeEntityDaoinUserId - The userId to search for in the database.inKey - The key to be searched in the database.public PhenotypeEntity getUserOrSystemByUserAndKey(Long inUserId, String inKey)
PhenotypeEntityDaogetUserOrSystemByUserAndKey in interface PhenotypeEntityDaoinUserId - The userId to search for in the database.inKey - he key to be searched in the database.public List<PhenotypeEntity> getByUserId(Long inUserId)
PhenotypeEntityDaogetByUserId in interface PhenotypeEntityDaoinUserId - the unique identifier for the given user.public PhenotypeEntity getById(Long inId)
PhenotypeEntityDaogetById in interface PhenotypeEntityDaoinId - The id to search for in the database.Copyright © 2012–2016 Emory University. All rights reserved.