    1   /***
    2    * JFoxSOAF, Service-Oriented Application Framework
    3    *
    4    * Copyright (C) www.huihoo.org
    5    *
    6    * Distributable under GNU LGPL For more information, please visit:
    7    * http://www.huihoo.org/jfox/jfoxsoaf
    8    */
    9
    10  package org.huihoo.jfox.soaf.services.persistence;
    11
    12  import java.util.List;
    13
    14  import com.ibatis.dao.client.DaoManager;
    15
    16  /***
    17   * JUnit test case model for IbatisServiceImpl
    18   *
    19   * {@link org.huihoo.jfox.soaf.services.persistence.CategoryDao).
    20   *
    21   * @author <a href="clinton.begin@ibatis.com">Clinton Begin</a>
    22   * @author <a href="mailto:founder_chen@yahoo.com">Peter Cheng </a>
    23   * @version $Revision: 1.1 $ $Date: 2004/11/16 07:59:02 $
    24   * @version Revision: 1.0
    25   */
    26
    27  public class CategorySqlMapDao extends BaseSqlMapDao implements CategoryDao {
    28
    29      public CategorySqlMapDao(DaoManager daoManager) {
    30          super(daoManager);
    31      }
    32
    33      public List getCategoryList() {
    34          return queryForList("getCategoryList", null);
    35      }
    36
    37      public Category getCategory(String categoryId) {
    38          return (Category) queryForObject("getCategory", categoryId);
    39      }
    40
    41  }