?? sqlmapcategorydao.java
字號(hào):
package org.springframework.samples.jpetstore.dao.ibatis;
import java.util.List;
import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.samples.jpetstore.dao.CategoryDao;
import org.springframework.samples.jpetstore.domain.Category;
public class SqlMapCategoryDao extends SqlMapClientDaoSupport implements CategoryDao {
public List getCategoryList() throws DataAccessException {
return getSqlMapClientTemplate().queryForList("getCategoryList", null);
}
public Category getCategory(String categoryId) throws DataAccessException {
return (Category) getSqlMapClientTemplate().queryForObject("getCategory", categoryId);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -