Interface SqlSessionCallback<T>


public interface SqlSessionCallback<T>
Callback API for performing work with a SqlSession.
  • Method Summary

    Modifier and Type
    Method
    Description
    doWithSqlSession(org.apache.ibatis.session.SqlSession session)
    Perform some task with a SqlSession.
  • Method Details

    • doWithSqlSession

      T doWithSqlSession(org.apache.ibatis.session.SqlSession session)
      Perform some task with a SqlSession.
      Parameters:
      session - the session object
      Returns:
      some object (possibly null)