/** * <p>Create AccountingEntries.</p> * @param pAddParam additional param * @return AccountingEntries request(or) scoped bean * @throws Exception - an exception */ @Override public final AccountingEntries create( final Map<String, Object> pAddParam) throws Exception { AccountingEntries object = new AccountingEntries(); object.setIsNew(false); object.setIdDatabaseBirth(this.databaseId); object.setItsDate(new Date()); return object; }
/** * <p>Create entity.</p> * @param pAddParam additional param * @return entity instance * @throws Exception - an exception **/ @Override public final AccountingEntries createEntity( final Map<String, Object> pAddParam) throws Exception { AccountingEntries entity = new AccountingEntries(); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsDate(new Date()); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; }
/** * <p>Retrieve copy of 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 AccountingEntries retrieveCopyEntity( final Map<String, Object> pAddParam, final Object pId) throws Exception { AccountingEntries entity = getSrvOrm() .retrieveCopyEntity(AccountingEntries.class, pId); entity.setIdDatabaseBirth(getSrvOrm().getIdDatabase()); entity.setItsDate(new Date()); entity.setIsNew(true); addAccSettingsIntoAttrs(pAddParam); return entity; } }
final IRequestData pRequestData) throws Exception { AccountingEntries entity = this.srvOrm.retrieveEntity(pAddParam, pEntity); entity.setIsNew(false); pRequestData.setAttribute("entity", entity); pRequestData.setAttribute("mngUvds", this.mngUvdSettings);