| org.springframework.orm.ibatis.SqlMapClientOperations
All known Subclasses: org.springframework.orm.ibatis.SqlMapClientTemplate,
SqlMapClientOperations | public interface SqlMapClientOperations (Code) | | 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
com.ibatis.sqlmap.client.SqlMapExecutor 's execution
methods. Users are strongly encouraged to read the iBATIS javadocs
for details on the semantics of those methods.
author: Juergen Hoeller since: 24.02.2004 See Also: SqlMapClientTemplate See Also: com.ibatis.sqlmap.client.SqlMapClient See Also: com.ibatis.sqlmap.client.SqlMapExecutor |
Method Summary | |
int | delete(String statementName) | int | delete(String statementName, Object parameterObject) | void | delete(String statementName, Object parameterObject, int requiredRowsAffected) Convenience method provided by Spring: execute a delete operation
with an automatic check that the delete affected the given required
number of rows. | Object | insert(String statementName) | Object | insert(String statementName, Object parameterObject) | List | queryForList(String statementName) | List | queryForList(String statementName, Object parameterObject) | List | queryForList(String statementName, int skipResults, int maxResults) | List | queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) | Map | queryForMap(String statementName, Object parameterObject, String keyProperty) | Map | queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) | Object | queryForObject(String statementName) | Object | queryForObject(String statementName, Object parameterObject) | Object | queryForObject(String statementName, Object parameterObject, Object resultObject) | PaginatedList | queryForPaginatedList(String statementName, int pageSize) | PaginatedList | queryForPaginatedList(String statementName, Object parameterObject, int pageSize) | void | queryWithRowHandler(String statementName, RowHandler rowHandler) | void | queryWithRowHandler(String statementName, Object parameterObject, RowHandler rowHandler) | int | update(String statementName) | int | update(String statementName, Object parameterObject) | void | update(String statementName, Object parameterObject, int requiredRowsAffected) Convenience method provided by Spring: execute an update operation
with an automatic check that the update affected the given required
number of rows. |
delete | void delete(String statementName, Object parameterObject, int requiredRowsAffected) throws DataAccessException(Code) | | 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 statement Parameters: parameterObject - the parameter object Parameters: requiredRowsAffected - the number of rows that the delete isrequired to affect throws: org.springframework.dao.DataAccessException - in case of errors |
update | void update(String statementName, Object parameterObject, int requiredRowsAffected) throws DataAccessException(Code) | | 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 statement Parameters: parameterObject - the parameter object Parameters: requiredRowsAffected - the number of rows that the update isrequired to affect throws: org.springframework.dao.DataAccessException - in case of errors |
|
|