Java 类ims.therapies.vo.ThermalShortVoCollection 实例源码

项目:AvoinApotti    文件:ThermalImpl.java   
public ThermalShortVoCollection listThermalDetailsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Thermal ctt ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ctt.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List thermal = factory.find(query,markers,values);
    ThermalShortVoCollection voThermalShortColl = ThermalShortVoAssembler.createThermalShortVoCollectionFromThermal(thermal);

    return voThermalShortColl;
}
项目:openMAXIMS    文件:ThermalImpl.java   
public ThermalShortVoCollection listThermalDetailsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Thermal ctt ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ctt.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List thermal = factory.find(query,markers,values);
    ThermalShortVoCollection voThermalShortColl = ThermalShortVoAssembler.createThermalShortVoCollectionFromThermal(thermal);

    return voThermalShortColl;
}
项目:openMAXIMS    文件:ThermalImpl.java   
public ThermalShortVoCollection listThermalDetailsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Thermal ctt ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ctt.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List thermal = factory.find(query,markers,values);
    ThermalShortVoCollection voThermalShortColl = ThermalShortVoAssembler.createThermalShortVoCollectionFromThermal(thermal);

    return voThermalShortColl;
}
项目:openmaxims-linux    文件:ThermalImpl.java   
public ThermalShortVoCollection listThermalDetailsByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Thermal ctt ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ctt.clinicalContact.careContext.id = :cc");
        markers.add("cc");
        values.add(voCareContextRef.getID_CareContext());
        andStr = " and ";
    }

    if (markers.size() > 0) query += " where ";
    query += hql.toString();    

    java.util.List thermal = factory.find(query,markers,values);
    ThermalShortVoCollection voThermalShortColl = ThermalShortVoAssembler.createThermalShortVoCollectionFromThermal(thermal);

    return voThermalShortColl;
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentNodes(ThermalShortVoCollection voThermalShortColl)
{
    if (voThermalShortColl == null || voThermalShortColl.size() <= 0 ) return;

    for(int i=0; i<voThermalShortColl.size(); i++)
    {
        populateParentNode(voThermalShortColl.get(i));          
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentNodes(ThermalShortVoCollection voThermalShortColl)
{
    if (voThermalShortColl == null || voThermalShortColl.size() <= 0 ) return;

    for(int i=0; i<voThermalShortColl.size(); i++)
    {
        populateParentNode(voThermalShortColl.get(i));          
    }   
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentNodes(ThermalShortVoCollection voThermalShortColl)
{
    if (voThermalShortColl == null || voThermalShortColl.size() <= 0 ) return;

    for(int i=0; i<voThermalShortColl.size(); i++)
    {
        populateParentNode(voThermalShortColl.get(i));          
    }   
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentNodes(ThermalShortVoCollection voThermalShortColl)
{
    if (voThermalShortColl == null || voThermalShortColl.size() <= 0 ) return;

    for(int i=0; i<voThermalShortColl.size(); i++)
    {
        populateParentNode(voThermalShortColl.get(i));          
    }   
}