Interface SqlMapClientOperations
- All Known Implementing Classes:
SqlMapClientTemplate
Deprecated.
as of Spring 3.2, in favor of the native Spring support in the Mybatis follow-up project
(https://mybatis.org/)
Interface that specifies a basic set of iBATIS SqlMapClient operations, implemented by
SqlMapClientTemplate.
Not often used, but a useful option to enhance testability, as it can easily be mocked or stubbed.
Defines SqlMapClientTemplate's convenience methods that mirror the iBATIS
SqlMapExecutor's execution methods. Users are strongly encouraged to read the iBATIS
javadocs for details on the semantics of those methods.
- Since:
- 24.02.2004
- Author:
- Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.intDeprecated.voidDeprecated.Convenience method provided by Spring: execute a delete operation with an automatic check that the delete affected the given required number of rows.Deprecated.Deprecated.queryForList(String statementName) Deprecated.queryForList(String statementName, int skipResults, int maxResults) Deprecated.queryForList(String statementName, Object parameterObject) Deprecated.queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) Deprecated.queryForMap(String statementName, Object parameterObject, String keyProperty) Deprecated.queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) Deprecated.queryForObject(String statementName) Deprecated.queryForObject(String statementName, Object parameterObject) Deprecated.queryForObject(String statementName, Object parameterObject, Object resultObject) Deprecated.voidqueryWithRowHandler(String statementName, com.ibatis.sqlmap.client.event.RowHandler rowHandler) Deprecated.voidqueryWithRowHandler(String statementName, Object parameterObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler) Deprecated.intDeprecated.intDeprecated.voidDeprecated.Convenience method provided by Spring: execute an update operation with an automatic check that the update affected the given required number of rows.
-
Method Details
-
queryForObject
-
queryForObject
-
queryForObject
-
queryForList
-
queryForList
-
queryForList
-
queryForList
-
queryWithRowHandler
void queryWithRowHandler(String statementName, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws org.springframework.dao.DataAccessException Deprecated.- Throws:
org.springframework.dao.DataAccessException- in case of errors- See Also:
-
queryWithRowHandler
-
queryForMap
-
queryForMap
-
insert
-
insert
-
update
Deprecated.- Throws:
org.springframework.dao.DataAccessException- in case of errors- See Also:
-
update
-
update
void update(String statementName, Object parameterObject, int requiredRowsAffected) throws org.springframework.dao.DataAccessException Deprecated.Convenience method provided by Spring: execute an update operation with an automatic check that the update affected the given required number of rows.- Parameters:
statementName- the name of the mapped statementparameterObject- the parameter objectrequiredRowsAffected- the number of rows that the update is required to affect- Throws:
org.springframework.dao.DataAccessException- in case of errors
-
delete
Deprecated.- Throws:
org.springframework.dao.DataAccessException- in case of errors- See Also:
-
delete
-
delete
void delete(String statementName, Object parameterObject, int requiredRowsAffected) throws org.springframework.dao.DataAccessException Deprecated.Convenience method provided by Spring: execute a delete operation with an automatic check that the delete affected the given required number of rows.- Parameters:
statementName- the name of the mapped statementparameterObject- the parameter objectrequiredRowsAffected- the number of rows that the delete is required to affect- Throws:
org.springframework.dao.DataAccessException- in case of errors
-