Search in sources :

Example 11 with ItemData

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();
}
Also used : Query(org.hibernate.query.Query) ItemData(org.akaza.openclinica.domain.datamap.ItemData)

Example 12 with ItemData

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();
}
Also used : Query(org.hibernate.query.Query) ItemData(org.akaza.openclinica.domain.datamap.ItemData)

Aggregations

ItemData (org.akaza.openclinica.domain.datamap.ItemData)12 Date (java.util.Date)5 ItemGroupMetadata (org.akaza.openclinica.domain.datamap.ItemGroupMetadata)4 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 Item (org.akaza.openclinica.domain.datamap.Item)3 QueriesBean (org.akaza.openclinica.core.form.xform.QueriesBean)2 ItemFormMetadata (org.akaza.openclinica.domain.datamap.ItemFormMetadata)2 Query (org.hibernate.query.Query)2 Errors (org.springframework.validation.Errors)2 Node (org.w3c.dom.Node)2 NodeList (org.w3c.dom.NodeList)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Configuration (freemarker.template.Configuration)1 Template (freemarker.template.Template)1 File (java.io.File)1 IOException (java.io.IOException)1 StringReader (java.io.StringReader)1 StringWriter (java.io.StringWriter)1 LinkedHashMap (java.util.LinkedHashMap)1