/** @see org.kuali.kfs.pdp.dataaccess.PendingTransactionDao#getUnextractedTransactions() */
  public Iterator<GlPendingTransaction> getUnextractedTransactions() {
    LOG.debug("save() started");

    Criteria criteria = new Criteria();
    criteria.addEqualTo(PdpPropertyConstants.PROCESS_IND, false);

    Criteria criteria2 = new Criteria();
    criteria2.addIsNull(PdpPropertyConstants.PROCESS_IND);

    criteria.addOrCriteria(criteria2);
    return getPersistenceBrokerTemplate()
        .getIteratorByQuery(new QueryByCriteria(GlPendingTransaction.class, criteria));
  }
示例#2
0
  /** @see org.kuali.kfs.pdp.dataaccess.PaymentGroupDao#getAchPaymentsNeedingAdviceNotification() */
  public List<PaymentGroup> getAchPaymentsNeedingAdviceNotification() {
    LOG.debug("getAchPaymentsNeedingAdviceNotification() started");

    Criteria criteria = new Criteria();
    criteria.addEqualTo(
        PdpPropertyConstants.PAYMENT_STATUS_CODE, PdpConstants.PaymentStatusCodes.EXTRACTED);
    criteria.addEqualTo(
        PdpPropertyConstants.DISBURSEMENT_TYPE_CODE, PdpConstants.DisbursementTypeCodes.ACH);
    criteria.addIsNull(PdpPropertyConstants.ADVICE_EMAIL_SENT_DATE);

    return (List<PaymentGroup>)
        getPersistenceBrokerTemplate()
            .getCollectionByQuery(new QueryByCriteria(PaymentGroup.class, criteria));
  }