/** * <p>Get SrvTypeCodeAccSources in lazy mode.</p> * @return SrvTypeCodeAccSources - SrvTypeCodeAccSources * @throws Exception - an exception */ public final synchronized SrvTypeCodeAccSources lazyGetSrvTypeCodeAccSources() throws Exception { if (this.srvTypeCodeAccSources == null) { this.srvTypeCodeAccSources = new SrvTypeCodeAccSources(); } return this.srvTypeCodeAccSources; }
/** * <p>Delete entity from DB by given ID.</p> * @param pAddParam additional param * @param pId ID * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final Object pId) throws Exception { T entity = retrieveEntityById(pAddParam, pId); deleteEntity(pAddParam, entity); }
/** * <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 PrepaymentTo pEntity) throws Exception { addTypeCodeIntoAttrs(pAddParam); }
/** * <p>Get draw item sources.</p> * @return draw item sources * @throws Exception - an exception **/ @Override public final List<? extends ADrawItemSourcesLine> getDrawItemSources() throws Exception { return getSrvAccSettings().lazyGetAccSettings() .getDrawMaterialSources(); } }
/** * <p>Get draw item sources.</p> * @return draw item sources * @throws Exception - an exception **/ @Override public final List<? extends ADrawItemSourcesLine> getDrawItemSources() throws Exception { return getSrvAccSettings().lazyGetAccSettings() .getCogsItemSources(); } }
/** * <p>Refresh entity from DB by given entity with ID.</p> * @param pEntity entity * @return entity or null * @throws Exception - an exception **/ @Override public final synchronized AccSettings retrieveEntity( final Map<String, Object> pAddParam, final AccSettings pEntity) throws Exception { return lazyGetAccSettings(); }
/** * <p>Delete entity from DB by given ID.</p> * @param pAddParam additional param * @param pId ID * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final Object pId) throws Exception { T entity = retrieveEntityById(pAddParam, pId); deleteEntity(pAddParam, entity); } }
/** * <p>Delete entity from DB by given ID.</p> * @param pAddParam additional param * @param pId ID * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final Object pId) throws Exception { T entity = retrieveEntityById(pAddParam, pId); deleteEntity(pAddParam, entity); }
/** * <p>Retrieve/get Accounting settings.</p> * @return Accounting settings * @throws Exception - an exception **/ @Override public final synchronized AccSettings lazyGetAccSettings() throws Exception { if (this.accSettings == null) { retrieveAccSettings(); } return this.accSettings; }
/** * <p>Get SrvTypeCodeSubacc in lazy mode.</p> * @return SrvTypeCodeSubacc - SrvTypeCodeSubacc * @throws Exception - an exception */ public final synchronized SrvTypeCodeSubacc lazyGetSrvTypeCodeSubacc() throws Exception { if (this.srvTypeCodeSubacc == null) { this.srvTypeCodeSubacc = new SrvTypeCodeSubacc(); } return this.srvTypeCodeSubacc; }
/** * <p>Lazy get queryPurchaseInvoiceTotals.</p> * @return queryPurchaseInvoiceTotals * @throws Exception - an exception **/ public final String lazyGetQueryPurchaseInvoiceTotals() throws Exception { if (this.queryPurchaseInvoiceTotals == null) { String flName = "/" + "accounting" + "/" + "trade" + "/" + this.fileQueryPurchaseInvoiceTotals; this.queryPurchaseInvoiceTotals = loadString(flName); } return this.queryPurchaseInvoiceTotals; }
/** * <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 PaymentTo pEntity) throws Exception { addTypeCodeIntoAttrs(pAddParam); }
/** * <p>Lazy get querySalesReturnLineTaxes.</p> * @return querySalesReturnLineTaxes * @throws Exception - an exception **/ public final String lazyGetQuerySalesReturnLineTaxes() throws Exception { if (this.querySalesReturnLineTaxes == null) { String flName = "/" + "accounting" + "/" + "trade" + "/" + "salesReturnLineTaxes.sql"; this.querySalesReturnLineTaxes = loadString(flName); } return this.querySalesReturnLineTaxes; }
/** * <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 PrepaymentFrom pEntity) throws Exception { addTypeCodeIntoAttrs(pAddParam); }
/** * <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 PaymentFrom pEntity) throws Exception { addTypeCodeIntoAttrs(pAddParam); }
/** * <p>Lazy get querySalesInvoiceTaxes.</p> * @return querySalesInvoiceTaxes * @throws Exception - an exception **/ public final String lazyGetQuerySalesInvoiceTaxes() throws Exception { if (this.querySalesInvoiceTaxes == null) { String flName = "/" + "accounting" + "/" + "trade" + "/" + this.fileQuerySalesInvoiceTaxes; this.querySalesInvoiceTaxes = loadString(flName); } return this.querySalesInvoiceTaxes; }
/** * <p>Lazy Get queryPurchaseReturnLineTaxes.</p> * @return String * @throws Exception - an exception **/ public final String lazyGetQueryPurchaseReturnLineTaxes() throws Exception { if (this.queryPurchaseReturnLineTaxes == null) { String flName = "/" + "accounting" + "/" + "trade" + "/" + "purchaseReturnLineTaxes.sql"; this.queryPurchaseReturnLineTaxes = loadString(flName); } return this.queryPurchaseReturnLineTaxes; }
/** * <p>Get draw item sources.</p> * @param pAddParam additional param * @return draw item sources * @throws Exception - an exception **/ @Override public final List<? extends ADrawItemSourcesLine> getDrawItemSources( final Map<String, Object> pAddParam) throws Exception { return getSrvAccSettings().lazyGetAccSettings(pAddParam) .getDrawMaterialSources(); } }
/** * <p>Retrieve entity from DB by given ID.</p> * @param pAddParam additional param * @param pId ID * @return entity or null * @throws Exception - an exception **/ @Override public final synchronized AccSettings retrieveEntityById( final Map<String, Object> pAddParam, final Object pId) throws Exception { return lazyGetAccSettings(); }
/** * <p>Lazy get queryPurchaseInvoiceTaxes.</p> * @return queryPurchaseInvoiceTaxes * @throws Exception - an exception **/ public final String lazyGetQueryPurchaseInvoiceTaxes() throws Exception { if (this.queryPurchaseInvoiceTaxes == null) { String flName = "/" + "accounting" + "/" + "trade" + "/" + this.fileQueryPurchaseInvoiceTaxes; this.queryPurchaseInvoiceTaxes = loadString(flName); } return this.queryPurchaseInvoiceTaxes; }