org.springframework.orm.ibatis
Interface SqlMapOperations
- All Known Implementing Classes:
- SqlMapTemplate
public interface SqlMapOperations
Interface that specifies a basic set of iBATIS SqlMap operations.
Implemented by SqlMapTemplate. Not often used, but a useful option
to enhance testability, as it can easily be mocked or stubbed.
Provides SqlMapTemplate's convenience methods that mirror MappedStatement's
executeXXX methods. See the MappedStatement javadocs for details on those methods.
NOTE: The SqlMap/MappedStatement API is the one to use with iBATIS SQL Maps 1.x.
The SqlMapClient/SqlMapSession API is only available with SQL Maps 2.
- Since:
- 05.02.2004
- Author:
- Juergen Hoeller
- See Also:
SqlMapTemplate
,
MappedStatement
Method Summary |
List |
executeQueryForList(String statementName,
Object parameterObject)
|
List |
executeQueryForList(String statementName,
Object parameterObject,
int skipResults,
int maxResults)
|
Map |
executeQueryForMap(String statementName,
Object parameterObject,
String keyProperty)
|
Map |
executeQueryForMap(String statementName,
Object parameterObject,
String keyProperty,
String valueProperty)
|
Object |
executeQueryForObject(String statementName,
Object parameterObject)
|
Object |
executeQueryForObject(String statementName,
Object parameterObject,
Object resultObject)
|
void |
executeQueryWithRowHandler(String statementName,
Object parameterObject,
com.ibatis.db.sqlmap.RowHandler rowHandler)
|
int |
executeUpdate(String statementName,
Object parameterObject)
|
executeQueryForObject
Object executeQueryForObject(String statementName,
Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForObject
Object executeQueryForObject(String statementName,
Object parameterObject,
Object resultObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForList
List executeQueryForList(String statementName,
Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForList
List executeQueryForList(String statementName,
Object parameterObject,
int skipResults,
int maxResults)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForMap
Map executeQueryForMap(String statementName,
Object parameterObject,
String keyProperty)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForMap
Map executeQueryForMap(String statementName,
Object parameterObject,
String keyProperty,
String valueProperty)
throws DataAccessException
- Throws:
DataAccessException
executeQueryWithRowHandler
void executeQueryWithRowHandler(String statementName,
Object parameterObject,
com.ibatis.db.sqlmap.RowHandler rowHandler)
throws DataAccessException
- Throws:
DataAccessException
executeUpdate
int executeUpdate(String statementName,
Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
Copyright (c) 2002-2006 The Spring Framework Project.