01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: /*
17: * Created on Sep 2, 2004
18: *
19: */
20: package org.kuali.module.pdp.dao.ojb;
21:
22: import java.util.Iterator;
23:
24: import org.apache.ojb.broker.query.Criteria;
25: import org.apache.ojb.broker.query.QueryByCriteria;
26: import org.kuali.core.dao.ojb.PlatformAwareDaoBaseOjb;
27: import org.kuali.module.pdp.bo.GlPendingTransaction;
28: import org.kuali.module.pdp.dao.GlPendingTransactionDao;
29:
30: /**
31: * @author jsissom
32: */
33: public class GlPendingTransactionDaoOjb extends PlatformAwareDaoBaseOjb
34: implements GlPendingTransactionDao {
35: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
36: .getLogger(GlPendingTransactionDaoOjb.class);
37:
38: public GlPendingTransactionDaoOjb() {
39: super ();
40: }
41:
42: /**
43: * @see org.kuali.module.pdp.dao.GlPendingTransactionDao#getUnextractedTransactions()
44: */
45: public Iterator getUnextractedTransactions() {
46: LOG.debug("save() started");
47:
48: Criteria criteria = new Criteria();
49: criteria.addIsNull("processInd");
50: return getPersistenceBrokerTemplate().getIteratorByQuery(
51: new QueryByCriteria(GlPendingTransaction.class,
52: criteria));
53: }
54:
55: /**
56: * @see org.kuali.module.pdp.dao.GlPendingTransactionDao#save(org.kuali.module.pdp.bo.GlPendingTransaction)
57: */
58: public void save(GlPendingTransaction gpt) {
59: LOG.debug("save() starting");
60:
61: getPersistenceBrokerTemplate().store(gpt);
62: }
63: }
|