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 |
java.util.List |
executeQueryForList(java.lang.String statementName,
java.lang.Object parameterObject)
|
java.util.List |
executeQueryForList(java.lang.String statementName,
java.lang.Object parameterObject,
int skipResults,
int maxResults)
|
java.util.Map |
executeQueryForMap(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.String keyProperty)
|
java.util.Map |
executeQueryForMap(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.String keyProperty,
java.lang.String valueProperty)
|
java.lang.Object |
executeQueryForObject(java.lang.String statementName,
java.lang.Object parameterObject)
|
java.lang.Object |
executeQueryForObject(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.Object resultObject)
|
void |
executeQueryWithRowHandler(java.lang.String statementName,
java.lang.Object parameterObject,
com.ibatis.db.sqlmap.RowHandler rowHandler)
|
int |
executeUpdate(java.lang.String statementName,
java.lang.Object parameterObject)
|
executeQueryForObject
public java.lang.Object executeQueryForObject(java.lang.String statementName,
java.lang.Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForObject
public java.lang.Object executeQueryForObject(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.Object resultObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForList
public java.util.List executeQueryForList(java.lang.String statementName,
java.lang.Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForList
public java.util.List executeQueryForList(java.lang.String statementName,
java.lang.Object parameterObject,
int skipResults,
int maxResults)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForMap
public java.util.Map executeQueryForMap(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.String keyProperty)
throws DataAccessException
- Throws:
DataAccessException
executeQueryForMap
public java.util.Map executeQueryForMap(java.lang.String statementName,
java.lang.Object parameterObject,
java.lang.String keyProperty,
java.lang.String valueProperty)
executeQueryWithRowHandler
public void executeQueryWithRowHandler(java.lang.String statementName,
java.lang.Object parameterObject,
com.ibatis.db.sqlmap.RowHandler rowHandler)
throws DataAccessException
- Throws:
DataAccessException
executeUpdate
public int executeUpdate(java.lang.String statementName,
java.lang.Object parameterObject)
throws DataAccessException
- Throws:
DataAccessException
Copyright (C) 2003-2004 The Spring Framework Project.