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

项目:AvoinApotti    文件:PneumaticImpl.java   
public ElectrotherapyPneumaticShortVoCollection listElectrotheraphyPneumaticByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ElectrotherapyPneumatic p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    List pneumatics = factory.find(query, markers, values, 200);    
    return ElectrotherapyPneumaticShortVoAssembler.createElectrotherapyPneumaticShortVoCollectionFromElectrotherapyPneumatic(pneumatics).sort();
}
项目:openMAXIMS    文件:PneumaticImpl.java   
public ElectrotherapyPneumaticShortVoCollection listElectrotheraphyPneumaticByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ElectrotherapyPneumatic p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    List pneumatics = factory.find(query, markers, values, 200);    
    return ElectrotherapyPneumaticShortVoAssembler.createElectrotherapyPneumaticShortVoCollectionFromElectrotherapyPneumatic(pneumatics).sort();
}
项目:openMAXIMS    文件:PneumaticImpl.java   
public ElectrotherapyPneumaticShortVoCollection listElectrotheraphyPneumaticByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ElectrotherapyPneumatic p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    List pneumatics = factory.find(query, markers, values, 200);    
    return ElectrotherapyPneumaticShortVoAssembler.createElectrotherapyPneumaticShortVoCollectionFromElectrotherapyPneumatic(pneumatics).sort();
}
项目:openmaxims-linux    文件:PneumaticImpl.java   
public ElectrotherapyPneumaticShortVoCollection listElectrotheraphyPneumaticByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from ElectrotherapyPneumatic p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

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

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

    List pneumatics = factory.find(query, markers, values, 200);    
    return ElectrotherapyPneumaticShortVoAssembler.createElectrotherapyPneumaticShortVoCollectionFromElectrotherapyPneumatic(pneumatics).sort();
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentNodes(ElectrotherapyPneumaticShortVoCollection voElectroPneumaticColl)
{
    if (voElectroPneumaticColl == null || voElectroPneumaticColl.size() <= 0 ) 
        return;

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

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

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

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