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