/** * <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 { this.srvOrm.deleteEntity(this.entityClass, pId); }
/** * <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 { getSrvOrm().deleteEntity(ReplicationAccMethod.class, pId); }
/** * <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 { getSrvOrm().deleteEntity(SubaccountLine.class, pId); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final T pEntity) throws Exception { this.srvOrm.deleteEntity(this.entityClass, pEntity.getItsId()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final ReplicationAccMethod pEntity) throws Exception { getSrvOrm().deleteEntity(ReplicationAccMethod.class, pEntity.getItsId()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final SubaccountLine pEntity) throws Exception { getSrvOrm().deleteEntity(SubaccountLine.class, pEntity.getItsId()); }
/** * <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 { getSrvOrm().deleteEntity(getEntityClass(), pId); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final T pEntity) throws Exception { getSrvOrm().deleteEntity(getEntityClass(), pEntity.getItsId()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final T pEntity) throws Exception { if (APersistableBase.class.isAssignableFrom(pEntity.getClass()) && !((APersistableBase) pEntity).getIdDatabaseBirth() .equals(getSrvOrm().getIdDatabase())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "can_not_delete_foreign_src"); } this.srvOrm.deleteEntity(this.entityClass, pEntity.getItsId()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final T pEntity) throws Exception { if (APersistableBase.class.isAssignableFrom(pEntity.getClass()) && !((APersistableBase) pEntity).getIdDatabaseBirth() .equals(getSrvOrm().getIdDatabase())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "can_not_delete_foreign_src"); } getSrvOrm().deleteEntity(this.entityClass, pEntity.getItsId()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final T pEntity) throws Exception { if (APersistableBase.class.isAssignableFrom(pEntity.getClass()) && !((APersistableBase) pEntity).getIdDatabaseBirth() .equals(getSrvOrm().getIdDatabase())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "can_not_delete_foreign_src"); } getSrvOrm().deleteEntity(getEntityClass(), pEntity.getItsId()); }
/** * <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 { PurchaseInvoiceServiceLine entity = retrieveEntityById(pAddParam, pId); getSrvOrm().deleteEntity(getEntityClass(), pId); this.utlPurchaseGoodsServiceLine.updateOwner(entity.getItsOwner()); }
/** * <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 { SalesInvoiceServiceLine entity = retrieveEntityById(pAddParam, pId); getSrvOrm().deleteEntity(getEntityClass(), pId); this.utlSalesGoodsServiceLine.updateOwner(entity.getItsOwner()); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final WageTaxLine pEntity) throws Exception { if (pEntity.getItsOwner().getHasMadeAccEntries()) { throw new ExceptionWithCode(ExceptionWithCode.FORBIDDEN, "attempt_to_change_accounted_document"); } getSrvOrm().deleteEntity(WageTaxLine.class, pEntity.getItsId()); updateOwner(pEntity); }
/** * <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 { Account oldAcc = getSrvOrm().retrieveEntityById(Account.class, pId); if (!oldAcc.getIsCreatedByUser()) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "account_cant_be_changed"); } getSrvOrm().deleteEntity(getEntityClass(), pId); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final WageLine pEntity) throws Exception { if (pEntity.getItsOwner().getHasMadeAccEntries()) { throw new ExceptionWithCode(ExceptionWithCode.FORBIDDEN, "attempt_to_change_accounted_document"); } getSrvOrm().deleteEntity(WageLine.class, pEntity.getItsId()); updateOwner(pEntity); }
/** * <p>Delete entity from DB.</p> * @param pAddParam additional param * @param pEntity entity * @throws Exception - an exception **/ @Override public final void deleteEntity(final Map<String, Object> pAddParam, final InvItemTaxCategoryLine pEntity) throws Exception { getSrvOrm().deleteEntity(getEntityClass(), pEntity.getItsId()); updateInvItemTaxCategory(pAddParam, pEntity.getItsOwner().getItsId()); addAccSettingsIntoAttrs(pAddParam); }
/** * <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 { WageLine entity = getSrvOrm() .retrieveEntityById(WageLine.class, pId); if (entity.getItsOwner().getHasMadeAccEntries()) { throw new ExceptionWithCode(ExceptionWithCode.FORBIDDEN, "attempt_to_change_accounted_document"); } getSrvOrm().deleteEntity(WageLine.class, entity.getItsId()); updateOwner(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 { WageTaxLine entity = getSrvOrm() .retrieveEntityById(WageTaxLine.class, pId); if (entity.getItsOwner().getHasMadeAccEntries()) { throw new ExceptionWithCode(ExceptionWithCode.FORBIDDEN, "attempt_to_change_accounted_document"); } getSrvOrm().deleteEntity(WageTaxLine.class, entity.getItsId()); updateOwner(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 { AdditionCostLine entity = getSrvOrm() .retrieveEntityById(AdditionCostLine.class, pId); if (entity.getItsOwner().getIsComplete()) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "attempt_to_change_completed_manufacturing_process"); } getSrvOrm().deleteEntity(AdditionCostLine.class, entity.getItsId()); updateOwner(entity); }