use of org.akaza.openclinica.domain.datamap.ItemData in project OpenClinica by OpenClinica.
the class ItemDataDao method findByEventCrfItemName.
public ItemData findByEventCrfItemName(int eventCrfId, String itemName, int ordinal) {
Query q = getCurrentSession().createQuery(findByEventCrfItemName);
q.setParameter("eventCrfId", eventCrfId);
q.setParameter("itemName", itemName);
q.setParameter("ordinal", ordinal);
return (ItemData) q.uniqueResult();
}
use of org.akaza.openclinica.domain.datamap.ItemData in project OpenClinica by OpenClinica.
the class ItemDataDao method findByEventCrfGroupOrdinal.
public ItemData findByEventCrfGroupOrdinal(EventCrf eventCrf, Integer itemGroupId, Integer ordinal) {
Query q = getCurrentSession().createQuery(findByEventCrfGroupOrdinalQuery);
q.setParameter("eventCrfId", eventCrf.getEventCrfId());
q.setParameter("itemGroupId", itemGroupId);
q.setParameter("ordinal", ordinal);
return (ItemData) q.uniqueResult();
}
Aggregations