Java 类ims.clinical.vo.domain.GoalPlanningVoAssembler 实例源码

项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


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

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


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

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


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

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVoCollection listGoalPlanningMeetings(CareContextLiteVo voCareContextLite) 
{
    if (voCareContextLite == null)
        throw new CodingRuntimeException("Care Context is a mandatory argument");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from GoalPlanning p ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    hql.append(andStr + " p.careContext.id = :careContext");
    markers.add("careContext");
    values.add(voCareContextLite.getID_CareContext());          
    andStr = " and ";


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

    List goalPlanning = factory.find(query, markers, values, 200);  
    return GoalPlanningVoAssembler.createGoalPlanningVoCollectionFromGoalPlanning(goalPlanning).sort();
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:AvoinApotti    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openMAXIMS    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo saveGoalPlanningMeeting(GoalPlanningVo voGoalPlanning) throws StaleObjectException, UniqueKeyViolationException 
{
    DomainFactory factory = getDomainFactory(); 

    if (!voGoalPlanning.isValidated())
    {
        throw new DomainRuntimeException("This GoalPlanningMeetingVo has not been validated");
    }

    GoalPlanning domGoalPlanning = GoalPlanningVoAssembler.extractGoalPlanning(factory, voGoalPlanning);

    factory.save(domGoalPlanning);

    return GoalPlanningVoAssembler.create(domGoalPlanning);
}
项目:openmaxims-linux    文件:GoalPlanningConferenceImpl.java   
public GoalPlanningVo getGoalPlanningVo(GoalPlanningRefVo goalPlanningRef) 
{
    if (goalPlanningRef == null)
        return null;

    DomainFactory factory = getDomainFactory();

    GoalPlanning domGoalPlanning = (GoalPlanning) factory.getDomainObject(GoalPlanning.class, goalPlanningRef.getID_GoalPlanning());
    return (GoalPlanningVoAssembler.create(domGoalPlanning));
}