Example usage for Java org.apache.ibatis.session SqlSession fields, constructors, methods, implement or subclass
The text is from its open source code.
void | clearCache() Clears local session cache. |
void | close() Closes the session. |
void | commit() Flushes batch statements and commits database connection. |
void | commit(boolean force) Flushes batch statements and commits database connection. |
int | delete(String statement, Object parameter) Execute a delete statement. |
int | delete(String statement) Execute a delete statement. |
List | flushStatements() Flushes batch statements. |
Configuration | getConfiguration() Retrieves current configuration. |
Connection | getConnection() Retrieves inner database connection. |
T | getMapper(Class Retrieves a mapper. |
int | insert(String statement, Object parameter) Execute an insert statement with the given parameter object. |
int | insert(String statement) Execute an insert statement. |
void | rollback() Discards pending batch statements and rolls database connection back. |
void | rollback(boolean force) Discards pending batch statements and rolls database connection back. |
void | select(String statement, ResultHandler handler) Retrieve a single row mapped from the statement using a ResultHandler . |
void | select(String statement, Object parameter, ResultHandler handler) Retrieve a single row mapped from the statement key and parameter using a ResultHandler . |
List | selectList(String statement) Retrieve a list of mapped objects from the statement key and parameter. |
List | selectList(String statement, Object parameter) Retrieve a list of mapped objects from the statement key and parameter. |
List | selectList(String statement, Object parameter, RowBounds rowBounds) Retrieve a list of mapped objects from the statement key and parameter, within the specified row bounds. |
Map | 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. |
Map | 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. |
Map | selectMap(String statement, Object parameter, String mapKey, 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. |
T | selectOne(String statement, Object parameter) Retrieve a single row mapped from the statement key and parameter. |
T | selectOne(String statement) Retrieve a single row mapped from the statement key. |
int | update(String statement, Object parameter) Execute an update statement. |
int | update(String statement) Execute an update statement. |