Search in sources :

Example 11 with SqlMapSessionImpl

use of com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl in project druid by alibaba.

the class IbatisUtils method setClientImpl.

public static SqlMapExecutor setClientImpl(SqlMapExecutor session, SqlMapClientImplWrapper clientImplWrapper) {
    if (session == null || clientImplWrapper == null) {
        return session;
    }
    if (session.getClass() == SqlMapSessionImpl.class) {
        SqlMapSessionImpl sessionImpl = (SqlMapSessionImpl) session;
        set(sessionImpl, clientImplWrapper);
    }
    return session;
}
Also used : SqlMapSessionImpl(com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl)

Aggregations

SqlMapSessionImpl (com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl)11 SqlMapSession (com.ibatis.sqlmap.client.SqlMapSession)8 Test (org.junit.Test)8 SqlMapSessionWrapper (com.alibaba.druid.support.ibatis.SqlMapSessionWrapper)1 BatchException (com.ibatis.sqlmap.engine.execution.BatchException)1 SqlMapClientImpl (com.ibatis.sqlmap.engine.impl.SqlMapClientImpl)1 SQLException (java.sql.SQLException)1