/** * <p>Get SrvCogsEntry in lazy mode.</p> * @return SrvCogsEntry - SrvCogsEntry * @throws Exception - an exception */ public final SrvCogsEntry<RS> lazyGetSrvCogsEntry() throws Exception { String beanName = getSrvCogsEntryName(); @SuppressWarnings("unchecked") SrvCogsEntry<RS> srvCogsEntry = (SrvCogsEntry<RS>) this.factoryAppBeans.getBeansMap().get(beanName); if (srvCogsEntry == null) { srvCogsEntry = new SrvCogsEntry<RS>(); srvCogsEntry.setSrvOrm(this.factoryAppBeans.lazyGetSrvOrm()); srvCogsEntry.setSrvDatabase(this.factoryAppBeans.lazyGetSrvDatabase()); srvCogsEntry.setSrvTypeCode(lazyGetSrvTypeCodeAccSources()); srvCogsEntry.setEntitiesFactoriesFatory( this.factoryBldAccServices.lazyGetFctBcFctSimpleEntities()); srvCogsEntry.setSrvAccSettings(lazyGetSrvAccSettings()); srvCogsEntry.setSrvI18n(this.factoryAppBeans.lazyGetSrvI18n()); srvCogsEntry .setSettersRapiHolder(this.factoryAppBeans.lazyGetHolderRapiSetters()); this.factoryAppBeans.getBeansMap().put(beanName, srvCogsEntry); this.factoryAppBeans.lazyGetLogger().info(null, FactoryAccServices.class, beanName + " has been created."); } return srvCogsEntry; }
/** * <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>Get SrvCogsEntry in lazy mode.</p> * @return SrvCogsEntry - SrvCogsEntry * @throws Exception - an exception */ public final synchronized SrvCogsEntry<RS> lazyGetSrvCogsEntry() throws Exception { if (this.srvCogsEntry == null) { this.srvCogsEntry = new SrvCogsEntry<RS>( factoryAppBeans.lazyGetSrvOrm(), factoryAppBeans.lazyGetSrvDatabase(), lazyGetSrvTypeCodeAccSources(), lazyGetSrvAccSettings(), factoryAppBeans.lazyGetSrvI18n(), lazyGetEntryDateFormatter()); } return this.srvCogsEntry; }
/** * <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) .getCogsItemSources(); } }