org.sonar.core.persistence
Class MyBatis

java.lang.Object
  extended by org.sonar.core.persistence.MyBatis
All Implemented Interfaces:
BatchComponent, ServerComponent

public class MyBatis
extends Object
implements BatchComponent, ServerComponent


Constructor Summary
MyBatis(Database database)
           
 
Method Summary
static void closeQuietly(org.apache.ibatis.session.SqlSession session)
           
 org.apache.ibatis.session.SqlSessionFactory getSessionFactory()
           
 BatchSession openBatchSession()
           
 org.apache.ibatis.session.SqlSession openSession()
           
 MyBatis start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyBatis

public MyBatis(Database database)
Method Detail

start

public MyBatis start()
              throws IOException
Throws:
IOException

getSessionFactory

public org.apache.ibatis.session.SqlSessionFactory getSessionFactory()

openSession

public org.apache.ibatis.session.SqlSession openSession()

openBatchSession

public BatchSession openBatchSession()

closeQuietly

public static void closeQuietly(org.apache.ibatis.session.SqlSession session)


Copyright © 2009-2012 SonarSource. All Rights Reserved.