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