Skip to content

Commit ded4fca

Browse files
committed
just uncomment when MyBatis 3.0.3 is released
1 parent 80a8be7 commit ded4fca

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

src/main/java/org/mybatis/spring/SqlSessionOperations.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,24 @@ public interface SqlSessionOperations {
6666
*/
6767
<T> List<T> selectList(String statement, Object parameter, RowBounds rowBounds);
6868

69+
// /**
70+
// * @see org.apache.ibatis.session.SqlSession#selectMap(String statement, String mapKey)
71+
// * @throws org.springframework.dao.DataAccessException in case of errors
72+
// */
73+
// <K, T> Map<K, T> selectMap(String statement, String mapKey);
74+
//
75+
// /**
76+
// * @see org.apache.ibatis.session.SqlSession#selectMap(String statement, Object parameter, String mapKey)
77+
// * @throws org.springframework.dao.DataAccessException in case of errors
78+
// */
79+
// <K, T> Map<K, T> selectMap(String statement, Object parameter, String mapKey);
80+
//
81+
// /**
82+
// * @see org.apache.ibatis.session.SqlSession#selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds)
83+
// * @throws org.springframework.dao.DataAccessException in case of errors
84+
// */
85+
// <K, T> Map<K, T> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds);
86+
6987
/**
7088
* @see org.apache.ibatis.session.SqlSession#select(String, Object, org.apache.ibatis.session.ResultHandler)
7189
* @throws org.springframework.dao.DataAccessException in case of errors

src/main/java/org/mybatis/spring/SqlSessionTemplate.java

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,41 @@ public <T> List<T> selectList(String statement, Object parameter) {
188188
/**
189189
* {@inheritDoc}
190190
*/
191-
@SuppressWarnings({ "unchecked" })
192191
public <T> List<T> selectList(final String statement, final Object parameter, final RowBounds rowBounds) {
193192
return execute(new SqlSessionCallback<List<T>>() {
193+
@SuppressWarnings({ "unchecked" })
194194
public List<T> doInSqlSession(SqlSession sqlSession) {
195195
return sqlSession.selectList(statement, parameter, rowBounds);
196196
}
197197
});
198198
}
199199

200+
// /**
201+
// * {@inheritDoc}
202+
// */
203+
// public <K, T> Map<K, T> selectMap(final String statement, final String mapKey) {
204+
// return selectMap(statement, null, mapKey);
205+
// }
206+
//
207+
// /**
208+
// * {@inheritDoc}
209+
// */
210+
// public <K, T> Map<K, T> selectMap(final String statement, final Object parameter, final String mapKey) {
211+
// return selectMap(statement, null, mapKey, RowBounds.DEFAULT);
212+
// }
213+
//
214+
// /**
215+
// * {@inheritDoc}
216+
// */
217+
// public <K, T> Map<K, T> selectMap(final String statement, final Object parameter, final String mapKey, final RowBounds rowBounds) {
218+
// return execute(new SqlSessionCallback<Map<K, T>>() {
219+
// @SuppressWarnings("unchecked")
220+
// public Map<K, T> doInSqlSession(SqlSession sqlSession) {
221+
// return sqlSession.selectMap(statement, parameter, mapKey, rowBounds);
222+
// }
223+
// });
224+
// }
225+
200226
/**
201227
* {@inheritDoc}
202228
*/
@@ -281,7 +307,7 @@ public Integer doInSqlSession(SqlSession sqlSession) {
281307
/**
282308
* {@inheritDoc}
283309
*/
284-
@SuppressWarnings({ "unchecked" })
310+
@SuppressWarnings("unchecked")
285311
public <T> T getMapper(final Class<T> type) {
286312
return (T) java.lang.reflect.Proxy.newProxyInstance(type.getClassLoader(), new Class<?>[] { type }, new InvocationHandler() {
287313
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {

0 commit comments

Comments
 (0)