Class IbatisUtils

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

public class IbatisUtils extends Object
  • Constructor Details

    • IbatisUtils

      public IbatisUtils()
  • Method Details

    • 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
      Parameters:
      statement - the statement object from which to retrieve the ID
      Returns:
      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
      Parameters:
      statement - the statement object from which to retrieve the resource
      Returns:
      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)