01: /**
02: * User: Clinton Begin Date: Jul 13, 2003 Time: 7:20:37 PM
03: */package com.ibatis.jpetstore.persistence.sqlmapdao;
04:
05: import java.util.List;
06:
07: import com.ibatis.dao.client.DaoManager;
08: import com.ibatis.jpetstore.domain.Category;
09: import com.ibatis.jpetstore.persistence.iface.CategoryDao;
10:
11: public class CategorySqlMapDao extends BaseSqlMapDao implements
12: CategoryDao {
13:
14: public CategorySqlMapDao(DaoManager daoManager) {
15: super (daoManager);
16: }
17:
18: public List getCategoryList() {
19: return queryForList("getCategoryList", null);
20: }
21:
22: public Category getCategory(String categoryId) {
23: return (Category) queryForObject("getCategory", categoryId);
24: }
25:
26: }
|