Java 类ims.therapies.vo.domain.StandingSessionShortVoAssembler 实例源码

项目:AvoinApotti    文件:StandingImpl.java   
/**
* lists Standing records for clinicalContact
*/
public StandingSessionShortVoCollection getStandingSessionByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from StandingSession ss ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ss.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 standing = factory.find(query,markers,values);
    StandingSessionShortVoCollection voStandingSessShortColl = StandingSessionShortVoAssembler.createStandingSessionShortVoCollectionFromStandingSession(standing);

    return voStandingSessShortColl;
}
项目:openMAXIMS    文件:StandingImpl.java   
/**
* lists Standing records for clinicalContact
*/
public StandingSessionShortVoCollection getStandingSessionByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from StandingSession ss ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ss.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 standing = factory.find(query,markers,values);
    StandingSessionShortVoCollection voStandingSessShortColl = StandingSessionShortVoAssembler.createStandingSessionShortVoCollectionFromStandingSession(standing);

    return voStandingSessShortColl;
}
项目:openMAXIMS    文件:StandingImpl.java   
/**
* lists Standing records for clinicalContact
*/
public StandingSessionShortVoCollection getStandingSessionByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from StandingSession ss ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ss.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 standing = factory.find(query,markers,values);
    StandingSessionShortVoCollection voStandingSessShortColl = StandingSessionShortVoAssembler.createStandingSessionShortVoCollectionFromStandingSession(standing);

    return voStandingSessShortColl;
}
项目:openmaxims-linux    文件:StandingImpl.java   
/**
* lists Standing records for clinicalContact
*/
public StandingSessionShortVoCollection getStandingSessionByCareContext(CareContextRefVo voCareContextRef)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer();
    String query = "from StandingSession ss ";
    ArrayList markers= new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if(voCareContextRef != null)
    {
        hql.append(andStr + " ss.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 standing = factory.find(query,markers,values);
    StandingSessionShortVoCollection voStandingSessShortColl = StandingSessionShortVoAssembler.createStandingSessionShortVoCollectionFromStandingSession(standing);

    return voStandingSessShortColl;
}