Class SqlMapClientWrapper

java.lang.Object
com.alibaba.druid.support.ibatis.SqlMapExecutorWrapper
com.alibaba.druid.support.ibatis.SqlMapClientWrapper
All Implemented Interfaces:
com.ibatis.sqlmap.client.SqlMapClient, com.ibatis.sqlmap.client.SqlMapExecutor, com.ibatis.sqlmap.client.SqlMapTransactionManager, com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient

public class SqlMapClientWrapper extends SqlMapExecutorWrapper implements com.ibatis.sqlmap.client.SqlMapClient, com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
  • Field Details

    • client

      protected final com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient client
  • Constructor Details

    • SqlMapClientWrapper

      public SqlMapClientWrapper(com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient client)
  • Method Details

    • getClient

      public com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient getClient()
    • startTransaction

      public void startTransaction() throws SQLException
      Specified by:
      startTransaction in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      startTransaction in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • startTransaction

      public void startTransaction(int transactionIsolation) throws SQLException
      Specified by:
      startTransaction in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      startTransaction in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • commitTransaction

      public void commitTransaction() throws SQLException
      Specified by:
      commitTransaction in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      commitTransaction in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • endTransaction

      public void endTransaction() throws SQLException
      Specified by:
      endTransaction in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      endTransaction in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • setUserConnection

      public void setUserConnection(Connection connection) throws SQLException
      Specified by:
      setUserConnection in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      setUserConnection in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • getUserConnection

      public Connection getUserConnection() throws SQLException
      Specified by:
      getUserConnection in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      getUserConnection in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • getCurrentConnection

      public Connection getCurrentConnection() throws SQLException
      Specified by:
      getCurrentConnection in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      getCurrentConnection in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
      Throws:
      SQLException
    • getDataSource

      public DataSource getDataSource()
      Specified by:
      getDataSource in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      getDataSource in interface com.ibatis.sqlmap.client.SqlMapTransactionManager
    • openSession

      public com.ibatis.sqlmap.client.SqlMapSession openSession()
      Specified by:
      openSession in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      openSession in interface com.ibatis.sqlmap.client.SqlMapClient
    • openSession

      public com.ibatis.sqlmap.client.SqlMapSession openSession(Connection conn)
      Specified by:
      openSession in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      openSession in interface com.ibatis.sqlmap.client.SqlMapClient
    • getSession

      public com.ibatis.sqlmap.client.SqlMapSession getSession()
      Specified by:
      getSession in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      getSession in interface com.ibatis.sqlmap.client.SqlMapClient
    • flushDataCache

      public void flushDataCache()
      Specified by:
      flushDataCache in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      flushDataCache in interface com.ibatis.sqlmap.client.SqlMapClient
    • flushDataCache

      public void flushDataCache(String cacheId)
      Specified by:
      flushDataCache in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
      Specified by:
      flushDataCache in interface com.ibatis.sqlmap.client.SqlMapClient
    • getMappedStatement

      public com.ibatis.sqlmap.engine.mapping.statement.MappedStatement getMappedStatement(String id)
      Specified by:
      getMappedStatement in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
    • isLazyLoadingEnabled

      public boolean isLazyLoadingEnabled()
      Specified by:
      isLazyLoadingEnabled in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
    • isEnhancementEnabled

      public boolean isEnhancementEnabled()
      Specified by:
      isEnhancementEnabled in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
    • getSqlExecutor

      public com.ibatis.sqlmap.engine.execution.SqlExecutor getSqlExecutor()
      Specified by:
      getSqlExecutor in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
    • getDelegate

      public com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate getDelegate()
      Specified by:
      getDelegate in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient
    • getResultObjectFactory

      public com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactory getResultObjectFactory()
      Specified by:
      getResultObjectFactory in interface com.ibatis.sqlmap.engine.impl.ExtendedSqlMapClient