1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.pm.positionresponsibility.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.positionresponsibility.PositionResponsibilityBo;
22 import org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb;
23
24 public class PositionResponsibilityDaoObjImpl extends PlatformAwareDaoBaseOjb implements PositionResponsibilityDao {
25
26 @Override
27 public PositionResponsibilityBo getPositionResponsibilityById(
28 String positionResponsibilityId) {
29 Criteria crit = new Criteria();
30 crit.addEqualTo("positionResponsibilityId", positionResponsibilityId);
31
32 Query query = QueryFactory.newQuery(PositionResponsibilityBo.class, crit);
33 return (PositionResponsibilityBo) this.getPersistenceBrokerTemplate().getObjectByQuery(query);
34 }
35
36 }