차근차근/Spring

mybatis-spring SqlSessionTemplate Public Methods

예쁜꽃이피었으면 2021. 12. 7. 11:15

SqlSessionTemplate

extends Object
implements SqlSession DisposableBean
java.lang.Object
   ↳ org.mybatis.spring.SqlSessionTemplate

 

 <bean id="sqlSessionTemplate" class="org.mybatis.spring.SqlSessionTemplate">
   <constructor-arg ref="sqlSessionFactory" />
 </bean>

Public Methods

void clearCache()
 
void close()
 
void commit(boolean force)
 
void commit()
 
int delete(String statement, Object parameter)
 
int delete(String statement)
 
void destroy()
Allow gently dispose bean:The implementation of DisposableBean forces spring context to use destroy() method instead of close() to shutdown gently.
List<BatchResult> flushStatements()
 
Configuration getConfiguration()
 
Connection getConnection()
 
ExecutorType getExecutorType()
<T> T getMapper(Class<T> type)
 
PersistenceExceptionTranslator getPersistenceExceptionTranslator()
SqlSessionFactory getSqlSessionFactory()
int insert(String statement)
 
int insert(String statement, Object parameter)
 
void rollback(boolean force)
 
void rollback()
 
void select(String statement, Object parameter, RowBounds rowBounds, ResultHandler handler)
 
void select(String statement, Object parameter, ResultHandler handler)
 
void select(String statement, ResultHandler handler)
 
<T> Cursor<T> selectCursor(String statement, Object parameter, RowBounds rowBounds)
 
<T> Cursor<T> selectCursor(String statement)
 
<T> Cursor<T> selectCursor(String statement, Object parameter)
 
<E> List<E> selectList(String statement, Object parameter)
 
<E> List<E> selectList(String statement, Object parameter, RowBounds rowBounds)
 
<E> List<E> selectList(String statement)
 
<K, V> Map<K, V> selectMap(String statement, String mapKey)
 
<K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey, RowBounds rowBounds)
 
<K, V> Map<K, V> selectMap(String statement, Object parameter, String mapKey)
 
<T> T selectOne(String statement, Object parameter)
 
<T> T selectOne(String statement)
 
int update(String statement, Object parameter)
 
int update(String statement)

 


[참조]

http://mybatis.org/spring/apidocs/reference/org/mybatis/spring/SqlSessionTemplate.html

 

반응형

'차근차근 > Spring' 카테고리의 다른 글

2.용어정리(1)-Model1,Model2,SpringMVC,POJO  (0) 2021.12.08
1.스프링의 구조  (0) 2021.12.08
ibatis  (0) 2021.12.06
Missing 'tools.jar'  (0) 2020.12.09
MySQL FULLTEXT 검색  (0) 2020.02.18