/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<T> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return this.srvOrm.retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions e.g. null * or "where ITSDATE>21313211 order by ITSID" * @return list of business objects * @throws Exception - an exception */ @Override public final List<T> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return this.srvOrm.retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<ReplicationAccMethod> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm().retrieveListWithConditions(ReplicationAccMethod.class, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<T> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm().retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<Account> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm().retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<T> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm().retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * or "where ITSDATE>21313211 order by ITSID" * @return list of business objects * @throws Exception - an exception */ @Override public final List<AccSettings> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm() .retrieveListWithConditions(this.entityClass, pQueryConditions); }
/** * <p>Retrieve a list of entities.</p> * @param pAddParam additional param * @param pQueryConditions Not NULL e.g. "where name='U1' ORDER BY id" * @return list of business objects * @throws Exception - an exception */ @Override public final List<T> retrieveListWithConditions( final Map<String, Object> pAddParam, final String pQueryConditions) throws Exception { return getSrvOrm().retrieveListWithConditions( getEntityClass(), pQueryConditions); }
/** * <p>Retrieve owned list of entities for itsOwner. * E.g. invoices lines for invoice</p> * @param pAddParam additional param * @param pIdOwner ID itsOwner * @return owned list of business objects * @throws Exception - an exception */ @Override public final List<AccountingEntry> retrieveOwnedListById( final Map<String, Object> pAddParam, final Object pIdOwner) throws Exception { String where = "where SOURCETYPE=" + this.accountingEntriesTypeCode + " and SOURCEID=" + pIdOwner; addAccSettingsIntoAttrs(pAddParam); return getSrvOrm().retrieveListWithConditions(AccountingEntry.class, where); }
result = getSrvOrm().retrieveListWithConditions(WarehouseEntry.class, where); + " and SOURCEOWNERID=" + pEntity.getItsId(); if (result == null) { result = getSrvOrm().retrieveListWithConditions(WarehouseEntry.class, where); } else { result.addAll(getSrvOrm().retrieveListWithConditions( WarehouseEntry.class, where));
/** * <p>Retrieve accounting entries for document.</p> * @param pAddParam additional param * @param pEntity a document * @throws Exception - an exception **/ @Override public final List<AccountingEntry> retrieveAccEntriesFor( final Map<String, Object> pAddParam, final IDoc pEntity) throws Exception { Long docId = pEntity.getItsId(); if (pEntity.getIdBirth() != null) { docId = pEntity.getIdBirth(); } List<AccountingEntry> result = getSrvOrm().retrieveListWithConditions( AccountingEntry.class, " where SOURCETYPE=" + pEntity.constTypeCode() + " and SOURCEID=" + docId + " and SOURCEDATABASEBIRTH=" + pEntity.getIdDatabaseBirth()); return result; }
List<SalesInvoiceTaxLine> sitl = getSrvOrm().retrieveListWithConditions( SalesInvoiceTaxLine.class, "where ITSOWNER=" + pOwnerId);
List<PurchaseReturnTaxLine> citl = getSrvOrm().retrieveListWithConditions( PurchaseReturnTaxLine.class, "where ITSOWNER=" + pOwnerId);
List<SalesReturnTaxLine> sitl = getSrvOrm().retrieveListWithConditions( SalesReturnTaxLine.class, "where ITSOWNER=" + pOwnerId);
List<PurchaseInvoiceTaxLine> sitl = getSrvOrm().retrieveListWithConditions( PurchaseInvoiceTaxLine.class, "where ITSOWNER=" + pOwnerId);
.retrieveListWithConditions(PaymentTo.class, "where PAYMENTTO.HASMADEACCENTRIES=1 and PAYMENTTO.REVERSEDID" + " is null and PURCHASEINVOICE=" + pEntity.getItsId());
&& pEntity.getService().getTaxCategory() != null) { List<InvItemTaxCategoryLine> pstl = getSrvOrm() .retrieveListWithConditions( InvItemTaxCategoryLine.class, "where ITSOWNER=" + pEntity.getService().getTaxCategory().getItsId());
.retrieveListWithConditions(PaymentFrom.class, "where PAYMENTFROM.HASMADEACCENTRIES=1 and PAYMENTFROM.REVERSEDID" + " is null and SALESINVOICE=" + pEntity.getItsId());
&& pEntity.getService().getTaxCategory() != null) { List<InvItemTaxCategoryLine> pstl = getSrvOrm() .retrieveListWithConditions( InvItemTaxCategoryLine.class, "where ITSOWNER=" + pEntity.getService().getTaxCategory().getItsId());
List<WarehouseEntry> wml = getSrvOrm().retrieveListWithConditions( WarehouseEntry.class, "where SOURCETYPE=" + pEntity.constTypeCode() + " and " + tblNm + ".IDDATABASEBIRTH=" + getSrvOrm().getIdDatabase()