Java 类ims.core.vo.domain.FieldHelpVoAssembler 实例源码

项目:AvoinApotti    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) 
{
    if(voLookup == null)
        throw new CodingRuntimeException("EDischargeHINT is null");

    DomainFactory factory = getDomainFactory();
    String hql = " from FieldHelpText fht " +
    " where fht.field = :fld "; 

    List list = factory.find(hql,new String[]{"fld"}, new Object[]{getDomLookup(voLookup)});

    if (list != null && list.size() > 0)
    {
        FieldHelpText doFHT = (FieldHelpText)list.get(0);
        return FieldHelpVoAssembler.create(doFHT);
    }
    return null;
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) 
{
    if(voLookup == null)
        throw new CodingRuntimeException("EDischargeHINT is null");

    DomainFactory factory = getDomainFactory();
    String hql = " from FieldHelpText fht " +
    " where fht.field = :fld "; 

    List list = factory.find(hql,new String[]{"fld"}, new Object[]{getDomLookup(voLookup)});

    if (list != null && list.size() > 0)
    {
        FieldHelpText doFHT = (FieldHelpText)list.get(0);
        return FieldHelpVoAssembler.create(doFHT);
    }
    return null;
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) 
{
    if(voLookup == null)
        throw new CodingRuntimeException("EDischargeHINT is null");

    DomainFactory factory = getDomainFactory();
    String hql = " from FieldHelpText fht " +
    " where fht.field = :fld "; 

    List list = factory.find(hql,new String[]{"fld"}, new Object[]{getDomLookup(voLookup)});

    if (list != null && list.size() > 0)
    {
        FieldHelpText doFHT = (FieldHelpText)list.get(0);
        return FieldHelpVoAssembler.create(doFHT);
    }
    return null;
}
项目:openmaxims-linux    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHintByLookupID(EDischargeHINT voLookup) 
{
    if(voLookup == null)
        throw new CodingRuntimeException("EDischargeHINT is null");

    DomainFactory factory = getDomainFactory();
    String hql = " from FieldHelpText fht " +
    " where fht.field = :fld "; 

    List list = factory.find(hql,new String[]{"fld"}, new Object[]{getDomLookup(voLookup)});

    if (list != null && list.size() > 0)
    {
        FieldHelpText doFHT = (FieldHelpText)list.get(0);
        return FieldHelpVoAssembler.create(doFHT);
    }
    return null;
}
项目:AvoinApotti    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHINT(FieldHelpTextRefVo voHistRef) 
{
    if(voHistRef == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    DomainFactory factory = getDomainFactory();
    return FieldHelpVoAssembler.create((FieldHelpText)factory.getDomainObject(FieldHelpText.class, voHistRef.getID_FieldHelpText()));

}
项目:AvoinApotti    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo saveHINT(FieldHelpVo voHelpText) throws DomainInterfaceException, StaleObjectException 
{
    if(voHelpText == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    if(!voHelpText.isValidated())
        throw new CodingRuntimeException("FieldHelpVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    FieldHelpText doHelp = FieldHelpVoAssembler.extractFieldHelpText(factory, voHelpText);

    factory.save(doHelp);
    return FieldHelpVoAssembler.create(doHelp);
}
项目:AvoinApotti    文件:EDischargeFuturePlanSthkComponentImpl.java   
public ims.core.vo.FieldHelpVo getHintByLookupID(ims.clinicaladmin.vo.lookups.EDischargeHINT lookup)
{
    if(lookup == null)
        throw new DomainRuntimeException("EDischargeHINT is null");

    String query = " from FieldHelpText fht where fht.field = :FLD ";

    ArrayList<String> paramNames = new ArrayList<String>();
    paramNames.add("FLD");

    ArrayList<Object> paramValues = new ArrayList<Object>();
    paramValues.add(getDomLookup(lookup));

    return FieldHelpVoAssembler.create((FieldHelpText) getDomainFactory().findFirst(query, paramNames, paramValues));
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHINT(FieldHelpTextRefVo voHistRef) 
{
    if(voHistRef == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    DomainFactory factory = getDomainFactory();
    return FieldHelpVoAssembler.create((FieldHelpText)factory.getDomainObject(FieldHelpText.class, voHistRef.getID_FieldHelpText()));

}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo saveHINT(FieldHelpVo voHelpText) throws DomainInterfaceException, StaleObjectException 
{
    if(voHelpText == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    if(!voHelpText.isValidated())
        throw new CodingRuntimeException("FieldHelpVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    FieldHelpText doHelp = FieldHelpVoAssembler.extractFieldHelpText(factory, voHelpText);

    factory.save(doHelp);
    return FieldHelpVoAssembler.create(doHelp);
}
项目:openMAXIMS    文件:EDischargeFuturePlanSthkComponentImpl.java   
public ims.core.vo.FieldHelpVo getHintByLookupID(ims.clinicaladmin.vo.lookups.EDischargeHINT lookup)
{
    if(lookup == null)
        throw new DomainRuntimeException("EDischargeHINT is null");

    String query = " from FieldHelpText fht where fht.field = :FLD ";

    ArrayList<String> paramNames = new ArrayList<String>();
    paramNames.add("FLD");

    ArrayList<Object> paramValues = new ArrayList<Object>();
    paramValues.add(getDomLookup(lookup));

    return FieldHelpVoAssembler.create((FieldHelpText) getDomainFactory().findFirst(query, paramNames, paramValues));
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHINT(FieldHelpTextRefVo voHistRef) 
{
    if(voHistRef == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    DomainFactory factory = getDomainFactory();
    return FieldHelpVoAssembler.create((FieldHelpText)factory.getDomainObject(FieldHelpText.class, voHistRef.getID_FieldHelpText()));

}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo saveHINT(FieldHelpVo voHelpText) throws DomainInterfaceException, StaleObjectException 
{
    if(voHelpText == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    if(!voHelpText.isValidated())
        throw new CodingRuntimeException("FieldHelpVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    FieldHelpText doHelp = FieldHelpVoAssembler.extractFieldHelpText(factory, voHelpText);

    factory.save(doHelp);
    return FieldHelpVoAssembler.create(doHelp);
}
项目:openMAXIMS    文件:EDischargeFuturePlanSthkComponentImpl.java   
public ims.core.vo.FieldHelpVo getHintByLookupID(ims.clinicaladmin.vo.lookups.EDischargeHINT lookup)
{
    if(lookup == null)
        throw new DomainRuntimeException("EDischargeHINT is null");

    String query = " from FieldHelpText fht where fht.field = :FLD ";

    ArrayList<String> paramNames = new ArrayList<String>();
    paramNames.add("FLD");

    ArrayList<Object> paramValues = new ArrayList<Object>();
    paramValues.add(getDomLookup(lookup));

    return FieldHelpVoAssembler.create((FieldHelpText) getDomainFactory().findFirst(query, paramNames, paramValues));
}
项目:openmaxims-linux    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo getHINT(FieldHelpTextRefVo voHistRef) 
{
    if(voHistRef == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    DomainFactory factory = getDomainFactory();
    return FieldHelpVoAssembler.create((FieldHelpText)factory.getDomainObject(FieldHelpText.class, voHistRef.getID_FieldHelpText()));

}
项目:openmaxims-linux    文件:EDischargeHINTConfigImpl.java   
public FieldHelpVo saveHINT(FieldHelpVo voHelpText) throws DomainInterfaceException, StaleObjectException 
{
    if(voHelpText == null)
        throw new CodingRuntimeException("FieldHelpVo is null");

    if(!voHelpText.isValidated())
        throw new CodingRuntimeException("FieldHelpVo Value Object has not been validated");

    DomainFactory factory = getDomainFactory();
    FieldHelpText doHelp = FieldHelpVoAssembler.extractFieldHelpText(factory, voHelpText);

    factory.save(doHelp);
    return FieldHelpVoAssembler.create(doHelp);
}
项目:openmaxims-linux    文件:EDischargeFuturePlanSthkComponentImpl.java   
public ims.core.vo.FieldHelpVo getHintByLookupID(ims.clinicaladmin.vo.lookups.EDischargeHINT lookup)
{
    if(lookup == null)
        throw new DomainRuntimeException("EDischargeHINT is null");

    String query = " from FieldHelpText fht where fht.field = :FLD ";

    ArrayList<String> paramNames = new ArrayList<String>();
    paramNames.add("FLD");

    ArrayList<Object> paramValues = new ArrayList<Object>();
    paramValues.add(getDomLookup(lookup));

    return FieldHelpVoAssembler.create((FieldHelpText) getDomainFactory().findFirst(query, paramNames, paramValues));
}
项目:AvoinApotti    文件:EDischargeHINTConfigImpl.java   
/**
* list all hints
*/
public ims.core.vo.FieldHelpVoCollection listHINTs()
{
    return FieldHelpVoAssembler.createFieldHelpVoCollectionFromFieldHelpText(getDomainFactory().find(" from FieldHelpText ")).sort();
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
/**
* list all hints
*/
public ims.core.vo.FieldHelpVoCollection listHINTs()
{
    return FieldHelpVoAssembler.createFieldHelpVoCollectionFromFieldHelpText(getDomainFactory().find(" from FieldHelpText ")).sort();
}
项目:openMAXIMS    文件:EDischargeHINTConfigImpl.java   
/**
* list all hints
*/
public ims.core.vo.FieldHelpVoCollection listHINTs()
{
    return FieldHelpVoAssembler.createFieldHelpVoCollectionFromFieldHelpText(getDomainFactory().find(" from FieldHelpText ")).sort();
}
项目:openmaxims-linux    文件:EDischargeHINTConfigImpl.java   
/**
* list all hints
*/
public ims.core.vo.FieldHelpVoCollection listHINTs()
{
    return FieldHelpVoAssembler.createFieldHelpVoCollectionFromFieldHelpText(getDomainFactory().find(" from FieldHelpText ")).sort();
}