类 IbatisUtils

java.lang.Object
com.alibaba.druid.support.ibatis.IbatisUtils

public class IbatisUtils extends Object
  • 构造器详细资料

    • IbatisUtils

      public IbatisUtils()
  • 方法详细资料

    • isVersion2_3_4

      public static boolean isVersion2_3_4()
    • setClientImpl

      public static com.ibatis.sqlmap.client.SqlMapExecutor setClientImpl(com.ibatis.sqlmap.client.SqlMapExecutor session, SqlMapClientImplWrapper clientImplWrapper)
    • getId

      protected static String getId(Object statement)
      通过反射的方式得到id,能够兼容2.3.0和2.3.4
      参数:
      statement - the statement object from which to retrieve the ID
      返回:
      the ID as a string, or null if an error occurs or if the ID is null
    • getResource

      protected static String getResource(Object statement)
      通过反射的方式得到resource,能够兼容2.3.0和2.3.4
      参数:
      statement - the statement object from which to retrieve the resource
      返回:
      the resource as a string, or null if an error occurs
    • set

      public static void set(com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl session, com.ibatis.sqlmap.engine.impl.SqlMapClientImpl client)