1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.pm.classification.dao;
17
18 import org.apache.ojb.broker.query.Criteria;
19 import org.apache.ojb.broker.query.Query;
20 import org.apache.ojb.broker.query.QueryFactory;
21 import org.kuali.kpme.pm.classification.Classification;
22 import org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb;
23
24 public class ClassificationDaoObjImpl extends PlatformAwareDaoBaseOjb implements ClassificationDao {
25
26 @Override
27 public Classification getClassificationById(String pmClassificationId) {
28 Criteria crit = new Criteria();
29 crit.addEqualTo("pmPositionClassId", pmClassificationId);
30
31 Query query = QueryFactory.newQuery(Classification.class, crit);
32 return (Classification) this.getPersistenceBrokerTemplate().getObjectByQuery(query);
33 }
34
35
36 }