@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { return session.selectMap(statement, parameter, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, String mapKey) { return session.selectMap(statement, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { return session.selectMap(statement, parameter, mapKey, rowBounds); }
private <K, V> Map<K, V> executeForMap(SqlSession sqlSession, Object[] args) { Map<K, V> result; Object param = method.convertArgsToSqlCommandParam(args); if (method.hasRowBounds()) { RowBounds rowBounds = method.extractRowBounds(args); result = sqlSession.selectMap(command.getName(), param, method.getMapKey(), rowBounds); } else { result = sqlSession.selectMap(command.getName(), param, method.getMapKey()); } return result; }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { return sqlSessionProxy.selectMap(statement, parameter, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, String mapKey) { return sqlSessionProxy.<K, V> selectMap(statement, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { return sqlSessionProxy.<K, V> selectMap(statement, parameter, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, String mapKey) { return sqlSessionProxy.selectMap(statement, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { return sqlSessionProxy.<K, V> selectMap(statement, parameter, mapKey, rowBounds); }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { return sqlSessionProxy.selectMap(statement, parameter, mapKey, rowBounds); }
public <K, V> Map<K, V> selectMap(String statement, String mapKey) { return wrappedSession.selectMap(statement, mapKey); }
public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { return wrappedSession.selectMap(statement, parameter, mapKey); }
public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds) { return wrappedSession.selectMap(statement, parameter, mapKey, rowBounds); }
sqlSession -> when(sqlSession.selectMap(randomStatement, randomMapKey)).thenReturn(randomMap), dbSession -> dbSession.selectMap(randomStatement, randomMapKey), sqlSession -> { verify(sqlSession).selectMap(randomStatement, randomMapKey); return randomMap; }); verifyDelegation( sqlSession -> when(sqlSession.selectMap(randomStatement, randomParameter, randomMapKey)).thenReturn(randomMap), dbSession -> dbSession.selectMap(randomStatement, randomParameter, randomMapKey), sqlSession -> { verify(sqlSessionMock).selectMap(randomStatement, randomParameter, randomMapKey); return randomMap; }); verifyDelegation( sqlSession -> when(sqlSession.selectMap(randomStatement, randomParameter, randomMapKey, rowBounds)).thenReturn(randomMap), dbSession -> dbSession.selectMap(randomStatement, randomParameter, randomMapKey, rowBounds), sqlSession -> { verify(sqlSessionMock).selectMap(randomStatement, randomParameter, randomMapKey, rowBounds); return randomMap; });
private <K, V> Map<K, V> executeForMap(SqlSession sqlSession, Object[] args) { Map<K, V> result; Object param = method.convertArgsToSqlCommandParam(args); if (method.hasRowBounds()) { RowBounds rowBounds = method.extractRowBounds(args); result = sqlSession.<K, V>selectMap(command.getName(), param, method.getMapKey(), rowBounds); } else { result = sqlSession.<K, V>selectMap(command.getName(), param, method.getMapKey()); } return result; }
private <K, V> Map<K, V> executeForMap(SqlSession sqlSession, Object[] args) { Map<K, V> result; Object param = method.convertArgsToSqlCommandParam(args); if (method.hasRowBounds()) { RowBounds rowBounds = method.extractRowBounds(args); result = sqlSession.selectMap(command.getName(), param, method.getMapKey(), rowBounds); } else { result = sqlSession.selectMap(command.getName(), param, method.getMapKey()); } return result; }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { return sqlSessionProxy.selectMap(statement, parameter, mapKey); }
@Override public <V> Map<String, V> findMap(String namespace, String statementId, Map<String, Object> parameters, String mapKey, Integer top) { String statement = namespace + "." + statementId; if (top != null) { RowBounds rowBounds = new RowBounds(0, top); return sqlSession.selectMap(statement, parameters, mapKey, rowBounds); } else { return sqlSession.selectMap(statement, parameters, mapKey); } }
/** 查找多个对象集合 */ protected Map<?, ?> selectMap(String statement, String mapKey) { return getSession().selectMap(statement, mapKey); }
@Override public <K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey) { long startTime = System.currentTimeMillis(); try { return this.sqlSession.selectMap(statement, parameter, mapKey); } finally { reportQueryExecuted(startTime, SELECT_LABEL, statement); } }