I have a few lines of code, which goes like this.
Query cmSbmQuery =createQuery(" from CmSbmHdr sbmHdr where sbmHdr.accountId = :acctId and sbmHdr.billPeriodEndDate>:sbmEndDate and sbmHdr.billPeriodEndDate<:sbmStartDate"); cmSbmQuery.bindId("acctId", accountId) ; cmSbmQuery.bindDate("sbmEndDate", sbmEndDate); cmSbmQuery.bindDate("sbmStartDate", sbmStartDate); cmSbmQuery.addResult("billSbmDttm", "sbmHdr.billDateTime"); cmSbmQuery.orderBy("billSbmDttm", Query.DESCENDING);
in this what does bindId, bindDate, addResult do?
|