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

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

    for(int i=0; i<voRemedialColl.size(); i++)
    {
        populateParentNode(voRemedialColl.get(i));          
    }   
}
项目:AvoinApotti    文件:RemedialImpl.java   
public RemedialShortVoCollection listRemedialByCareContext(CareContextRefVo voCareContextRef)
{
    if (voCareContextRef == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Remedial r ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" r.clinicalContact.careContext.id = :cc");
    markers.add("cc");
    values.add(voCareContextRef.getID_CareContext());

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

    query += hql.toString();    

    List remedial = factory.find(query,markers,values);
    RemedialShortVoCollection voRemedialColl = RemedialShortVoAssembler.createRemedialShortVoCollectionFromRemedial(remedial);
    //WDEV-15078
    //if(voRemedialColl.size() > 0)
        return voRemedialColl;
    //else
        //return null;  
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentNodes(RemedialShortVoCollection voRemedialColl)
{
    if (voRemedialColl == null || voRemedialColl.size() <= 0 ) return;

    for(int i=0; i<voRemedialColl.size(); i++)
    {
        populateParentNode(voRemedialColl.get(i));          
    }   
}
项目:openMAXIMS    文件:RemedialImpl.java   
public RemedialShortVoCollection listRemedialByCareContext(CareContextRefVo voCareContextRef)
{
    if (voCareContextRef == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Remedial r ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" r.clinicalContact.careContext.id = :cc");
    markers.add("cc");
    values.add(voCareContextRef.getID_CareContext());

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

    query += hql.toString();    

    List remedial = factory.find(query,markers,values);
    RemedialShortVoCollection voRemedialColl = RemedialShortVoAssembler.createRemedialShortVoCollectionFromRemedial(remedial);
    //WDEV-15078
    //if(voRemedialColl.size() > 0)
        return voRemedialColl;
    //else
        //return null;  
}
项目:openMAXIMS    文件:Logic.java   
private void populateParentNodes(RemedialShortVoCollection voRemedialColl)
{
    if (voRemedialColl == null || voRemedialColl.size() <= 0 ) return;

    for(int i=0; i<voRemedialColl.size(); i++)
    {
        populateParentNode(voRemedialColl.get(i));          
    }   
}
项目:openMAXIMS    文件:RemedialImpl.java   
public RemedialShortVoCollection listRemedialByCareContext(CareContextRefVo voCareContextRef)
{
    if (voCareContextRef == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Remedial r ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" r.clinicalContact.careContext.id = :cc");
    markers.add("cc");
    values.add(voCareContextRef.getID_CareContext());

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

    query += hql.toString();    

    List remedial = factory.find(query,markers,values);
    RemedialShortVoCollection voRemedialColl = RemedialShortVoAssembler.createRemedialShortVoCollectionFromRemedial(remedial);
    //WDEV-15078
    //if(voRemedialColl.size() > 0)
        return voRemedialColl;
    //else
        //return null;  
}
项目:openmaxims-linux    文件:Logic.java   
private void populateParentNodes(RemedialShortVoCollection voRemedialColl)
{
    if (voRemedialColl == null || voRemedialColl.size() <= 0 ) return;

    for(int i=0; i<voRemedialColl.size(); i++)
    {
        populateParentNode(voRemedialColl.get(i));          
    }   
}
项目:openmaxims-linux    文件:RemedialImpl.java   
public RemedialShortVoCollection listRemedialByCareContext(CareContextRefVo voCareContextRef)
{
    if (voCareContextRef == null)
        throw new DomainRuntimeException("CareContextRefVo is null");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Remedial r ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" r.clinicalContact.careContext.id = :cc");
    markers.add("cc");
    values.add(voCareContextRef.getID_CareContext());

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

    query += hql.toString();    

    List remedial = factory.find(query,markers,values);
    RemedialShortVoCollection voRemedialColl = RemedialShortVoAssembler.createRemedialShortVoCollectionFromRemedial(remedial);
    //WDEV-15078
    //if(voRemedialColl.size() > 0)
        return voRemedialColl;
    //else
        //return null;  
}