1 package org.kuali.ole.service.impl;
2
3 import org.apache.ojb.broker.query.Criteria;
4 import org.apache.ojb.broker.query.QueryFactory;
5 import org.kuali.ole.select.bo.OLEHoldingsRecord;
6 import org.kuali.ole.service.OLEHoldingsDao;
7 import org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb;
8
9 import java.util.Collection;
10 import java.util.List;
11
12
13
14
15
16
17
18
19 public class OLEHoldingsDaoOjb extends PlatformAwareDaoBaseOjb implements OLEHoldingsDao {
20
21 @Override
22 public List<OLEHoldingsRecord> getHoldingsByCollection(Collection bibIds) {
23 Criteria criteria = new Criteria();
24 criteria.addColumnIn("BIB_ID",bibIds);
25 List<OLEHoldingsRecord> holdingsRecords = (List<OLEHoldingsRecord>) getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(OLEHoldingsRecord.class, criteria));
26 return holdingsRecords;
27 }
28 }