/** * <p>Fill object's field.</p> * @param pAddParam additional param * @param pObject Object to fill * @param pFieldVal Field Value * @param pFieldName Field name * @throws Exception - an exception **/ @Override public final void fill(final Map<String, Object> pAddParam, final T pObject, final Object pFieldVal, final String pFieldName) throws Exception { Method fldSetter = this.settersRapiHolder .getFor(this.objectClass, pFieldName); fldSetter.invoke(pObject, pFieldVal); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Get match foreign given ID.</p> * @param pReqVars additional param * @param pId ID * @return match foreign * @throws Exception an Exception **/ public final MatchForeign getFor(final Map<String, Object> pReqVars, final Long pId) throws Exception { MatchForeign mf = getSrvOrm().retrieveEntityById(pReqVars, MatchForeign.class, pId); mf.setItsLines(getSrvOrm().retrieveListWithConditions(pReqVars, MatchForeignLine.class, "where ITSOWNER=" + pId)); return mf; }
/** * <p>Get thing for given class and thing name.</p> * @param pClass a Class * @param pThingName Thing Name * @return a thing **/ @Override public final String getFor(final Class<?> pClass, final String pThingName) { Field field = this.fieldsRapiHolder.getFor(pClass, pThingName); Class<?> classKey = field.getType(); if (IHasId.class.isAssignableFrom(classKey)) { classKey = IHasId.class; } else if (Enum.class.isAssignableFrom(classKey)) { classKey = Enum.class; } return this.convertersNamesMap.get(classKey); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added accounting settings to attributes.</p> * @param pAddParam additional param * @throws Exception - an exception */ public final void addAccSettingsIntoAttrs( final Map<String, Object> pAddParam) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("accSettings", srvAccSettings.lazyGetAccSettings()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", srvTypeCode.getTypeCodeMap()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Added source types.</p> * @param pAddParam additional param */ public final void addTypeCodeIntoAttrs(final Map<String, Object> pAddParam) { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("typeCodeSubaccMap", this.srvTypeCode.getTypeCodeMap()); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("cogsEntries", srvCogsEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("useMaterialEntries", srvUseMaterialEntry .retrieveEntriesFor(pAddParam, pEntity)); }
/** * <p>Retrieve other data of entity e.g. warehouse entries.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void retrieveOtherDataFor(final Map<String, Object> pAddParam, final T pEntity) throws Exception { IAttributes attributes = (IAttributes) pAddParam.get("attributes"); attributes.setAttribute("warehouseEntries", srvWarehouseEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("useMaterialEntries", srvUseMaterialEntry .retrieveEntriesFor(pAddParam, pEntity)); attributes.setAttribute("cogsEntries", srvCogsEntry .retrieveEntriesFor(pAddParam, pEntity)); }