@Deprecated public interface SqlMapClientOperations
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.
SqlMapClientTemplate
,
SqlMapClient
,
SqlMapExecutor
Modifier and Type | Method and Description |
---|---|
int |
delete(String statementName)
Deprecated.
|
int |
delete(String statementName,
Object parameterObject)
Deprecated.
|
void |
delete(String statementName,
Object parameterObject,
int requiredRowsAffected)
Deprecated.
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)
Deprecated.
|
Object |
insert(String statementName,
Object parameterObject)
Deprecated.
|
List |
queryForList(String statementName)
Deprecated.
|
List |
queryForList(String statementName,
int skipResults,
int maxResults)
Deprecated.
|
List |
queryForList(String statementName,
Object parameterObject)
Deprecated.
|
List |
queryForList(String statementName,
Object parameterObject,
int skipResults,
int maxResults)
Deprecated.
|
Map |
queryForMap(String statementName,
Object parameterObject,
String keyProperty)
Deprecated.
|
Map |
queryForMap(String statementName,
Object parameterObject,
String keyProperty,
String valueProperty)
Deprecated.
|
Object |
queryForObject(String statementName)
Deprecated.
|
Object |
queryForObject(String statementName,
Object parameterObject)
Deprecated.
|
Object |
queryForObject(String statementName,
Object parameterObject,
Object resultObject)
Deprecated.
|
void |
queryWithRowHandler(String statementName,
Object parameterObject,
RowHandler rowHandler)
Deprecated.
|
void |
queryWithRowHandler(String statementName,
RowHandler rowHandler)
Deprecated.
|
int |
update(String statementName)
Deprecated.
|
int |
update(String statementName,
Object parameterObject)
Deprecated.
|
void |
update(String statementName,
Object parameterObject,
int requiredRowsAffected)
Deprecated.
Convenience method provided by Spring: execute an update operation
with an automatic check that the update affected the given required
number of rows.
|
Object queryForObject(String statementName) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForObject(String)
Object queryForObject(String statementName, Object parameterObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForObject(String, Object)
Object queryForObject(String statementName, Object parameterObject, Object resultObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForObject(String, Object, Object)
List queryForList(String statementName) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForList(String)
List queryForList(String statementName, Object parameterObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForList(String, Object)
List queryForList(String statementName, int skipResults, int maxResults) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForList(String, int, int)
List queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForList(String, Object, int, int)
void queryWithRowHandler(String statementName, RowHandler rowHandler) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryWithRowHandler(String, RowHandler)
void queryWithRowHandler(String statementName, Object parameterObject, RowHandler rowHandler) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryWithRowHandler(String, Object, RowHandler)
Map queryForMap(String statementName, Object parameterObject, String keyProperty) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForMap(String, Object, String)
Map queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.queryForMap(String, Object, String, String)
Object insert(String statementName) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.insert(String)
Object insert(String statementName, Object parameterObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.insert(String, Object)
int update(String statementName) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.update(String)
int update(String statementName, Object parameterObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.update(String, Object)
void update(String statementName, Object parameterObject, int requiredRowsAffected) throws DataAccessException
statementName
- the name of the mapped statementparameterObject
- the parameter objectrequiredRowsAffected
- the number of rows that the update is
required to affectDataAccessException
- in case of errorsint delete(String statementName) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.delete(String)
int delete(String statementName, Object parameterObject) throws DataAccessException
DataAccessException
- in case of errorsSqlMapExecutor.delete(String, Object)
void delete(String statementName, Object parameterObject, int requiredRowsAffected) throws DataAccessException
statementName
- the name of the mapped statementparameterObject
- the parameter objectrequiredRowsAffected
- the number of rows that the delete is
required to affectDataAccessException
- in case of errors