public interface SqlExecutorOperations extends JdbcOperations
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
deleteStatement(String statement)
Execute a delete statement.
|
default int |
deleteStatement(String statement,
Object parameter)
Execute a delete statement.
|
<T> T |
execute(SqlSessionCallback<T> sessionCallback)
查询单个数据的方法。
|
default int |
insertStatement(String statement)
Execute an insert statement.
|
default int |
insertStatement(String statement,
Object parameter)
Execute an insert statement with the given parameter object.
|
default <E> List<E> |
selectList(String statement)
Retrieve a list of mapped objects from the statement key and parameter.
|
default <E> List<E> |
selectList(String statement,
Object parameter)
Retrieve a list of mapped objects from the statement key and parameter.
|
default <E> List<E> |
selectList(String statement,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds)
Retrieve a list of mapped objects from the statement key and parameter, within the specified row bounds.
|
default <K,V> Map<K,V> |
selectMap(String statement,
Object parameter,
String mapKey)
The selectMap is a special case in that it is designed to convert a list of results into a Map based on one of the properties in the resulting objects.
|
default <K,V> Map<K,V> |
selectMap(String statement,
Object parameter,
String mapKey,
org.apache.ibatis.session.RowBounds rowBounds)
The selectMap is a special case in that it is designed to convert a list of results into a Map based on one of the properties in the resulting objects.
|
default <K,V> Map<K,V> |
selectMap(String statement,
String mapKey)
The selectMap is a special case in that it is designed to convert a list of results into a Map based on one of the properties in the resulting objects.
|
default <T> T |
selectOne(String statement)
Retrieve a single row mapped from the statement key
|
default <T> T |
selectOne(String statement,
Object parameter)
Retrieve a single row mapped from the statement key and parameter.
|
default int |
updateStatement(String statement)
Execute an update statement.
|
default int |
updateStatement(String statement,
Object parameter)
Execute an update statement.
|
execute, execute, execute, execute, execute, execute, execute, execute, execute, executeBatch, executeBatch, executeBatch, executeBatch, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, query, queryForInt, queryForInt, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForLong, queryForLong, queryForMap, queryForMap, queryForMap, queryForMap, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject, queryForObject<T> T execute(SqlSessionCallback<T> sessionCallback) throws SQLException
sessionCallback - 创建一个SqlSession用来执行SqlSessionCallback。SQLExceptiondefault <T> T selectOne(String statement) throws SQLException
T - the returned object typestatement - SQLExceptiondefault <T> T selectOne(String statement, Object parameter) throws SQLException
T - the returned object typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.SQLExceptiondefault <E> List<E> selectList(String statement) throws SQLException
E - the returned list element typestatement - Unique identifier matching the statement to use.SQLExceptiondefault <E> List<E> selectList(String statement, Object parameter) throws SQLException
E - the returned list element typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.SQLExceptiondefault <E> List<E> selectList(String statement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds) throws SQLException
E - the returned list element typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.rowBounds - Bounds to limit object retrievalSQLExceptiondefault <K,V> Map<K,V> selectMap(String statement, String mapKey) throws SQLException
K - the returned Map keys typeV - the returned Map values typestatement - Unique identifier matching the statement to use.mapKey - The property to use as key for each value in the list.SQLExceptiondefault <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey) throws SQLException
K - the returned Map keys typeV - the returned Map values typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.mapKey - The property to use as key for each value in the list.SQLExceptiondefault <K,V> Map<K,V> selectMap(String statement, Object parameter, String mapKey, org.apache.ibatis.session.RowBounds rowBounds) throws SQLException
K - the returned Map keys typeV - the returned Map values typestatement - Unique identifier matching the statement to use.parameter - A parameter object to pass to the statement.mapKey - The property to use as key for each value in the list.rowBounds - Bounds to limit object retrievalSQLExceptiondefault int insertStatement(String statement) throws SQLException
statement - Unique identifier matching the statement to execute.SQLExceptiondefault int insertStatement(String statement, Object parameter) throws SQLException
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.SQLExceptiondefault int updateStatement(String statement) throws SQLException
statement - Unique identifier matching the statement to execute.SQLExceptiondefault int updateStatement(String statement, Object parameter) throws SQLException
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.SQLExceptiondefault int deleteStatement(String statement) throws SQLException
statement - Unique identifier matching the statement to execute.SQLExceptiondefault int deleteStatement(String statement, Object parameter) throws SQLException
statement - Unique identifier matching the statement to execute.parameter - A parameter object to pass to the statement.SQLExceptionCopyright © 2020. All rights reserved.