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

项目:AvoinApotti    文件:MobilisationsImpl.java   
public MobilisationsShortVoCollection listByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Mobilisations mob ";
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Integer> values = new ArrayList<Integer>();
    String andStr = " ";

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

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

    java.util.List mobilisation = factory.find(query, markers, values);
    return MobilisationsShortVoAssembler.createMobilisationsShortVoCollectionFromMobilisations(mobilisation);
}
项目:openMAXIMS    文件:MobilisationsImpl.java   
public MobilisationsShortVoCollection listByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Mobilisations mob ";
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Integer> values = new ArrayList<Integer>();
    String andStr = " ";

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

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

    java.util.List mobilisation = factory.find(query, markers, values);
    return MobilisationsShortVoAssembler.createMobilisationsShortVoCollectionFromMobilisations(mobilisation);
}
项目:openMAXIMS    文件:MobilisationsImpl.java   
public MobilisationsShortVoCollection listByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Mobilisations mob ";
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Integer> values = new ArrayList<Integer>();
    String andStr = " ";

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

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

    java.util.List mobilisation = factory.find(query, markers, values);
    return MobilisationsShortVoAssembler.createMobilisationsShortVoCollectionFromMobilisations(mobilisation);
}
项目:openmaxims-linux    文件:MobilisationsImpl.java   
public MobilisationsShortVoCollection listByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from Mobilisations mob ";
    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Integer> values = new ArrayList<Integer>();
    String andStr = " ";

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

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

    java.util.List mobilisation = factory.find(query, markers, values);
    return MobilisationsShortVoAssembler.createMobilisationsShortVoCollectionFromMobilisations(mobilisation);
}
项目:AvoinApotti    文件:Logic.java   
private void populateParentNodes(MobilisationsShortVoCollection voMobilisationsShortColl)
{
    if (voMobilisationsShortColl == null || voMobilisationsShortColl.size() <= 0 ) return;

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

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

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

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