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; }
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())); }
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); }
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)); }
/** * list all hints */ public ims.core.vo.FieldHelpVoCollection listHINTs() { return FieldHelpVoAssembler.createFieldHelpVoCollectionFromFieldHelpText(getDomainFactory().find(" from FieldHelpText ")).sort(); }