Interface SqlMapClientOperations

All Known Implementing Classes:
SqlMapClientTemplate

@Deprecated public interface SqlMapClientOperations
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 Details

    • queryForObject

      Object queryForObject(String statementName) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForObject(String)
    • queryForObject

      Object queryForObject(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForObject(String, Object)
    • queryForObject

      Object queryForObject(String statementName, Object parameterObject, Object resultObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForObject(String, Object, Object)
    • queryForList

      List queryForList(String statementName) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForList(String)
    • queryForList

      List queryForList(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForList(String, Object)
    • queryForList

      List queryForList(String statementName, int skipResults, int maxResults) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForList(String, int, int)
    • queryForList

      List queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForList(String, Object, int, int)
    • 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:
      • SqlMapExecutor.queryWithRowHandler(String, RowHandler)
    • queryWithRowHandler

      void queryWithRowHandler(String statementName, Object parameterObject, com.ibatis.sqlmap.client.event.RowHandler rowHandler) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryWithRowHandler(String, Object, RowHandler)
    • queryForMap

      Map queryForMap(String statementName, Object parameterObject, String keyProperty) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForMap(String, Object, String)
    • queryForMap

      Map queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.queryForMap(String, Object, String, String)
    • insert

      Object insert(String statementName) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.insert(String)
    • insert

      Object insert(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.insert(String, Object)
    • update

      int update(String statementName) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.update(String)
    • update

      int update(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.update(String, Object)
    • 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 statement
      parameterObject - the parameter object
      requiredRowsAffected - the number of rows that the update is required to affect
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
    • delete

      int delete(String statementName) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.delete(String)
    • delete

      int delete(String statementName, Object parameterObject) throws org.springframework.dao.DataAccessException
      Deprecated.
      Throws:
      org.springframework.dao.DataAccessException - in case of errors
      See Also:
      • SqlMapExecutor.delete(String, Object)
    • 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 statement
      parameterObject - the parameter object
      requiredRowsAffected - the number of rows that the delete is required to affect
      Throws:
      org.springframework.dao.DataAccessException - in case of errors