Package com.alibaba.druid.support.ibatis
Class IbatisUtils
- java.lang.Object
-
- com.alibaba.druid.support.ibatis.IbatisUtils
-
public class IbatisUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description IbatisUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringgetId(Object statement)通过反射的方式得到id,能够兼容2.3.0和2.3.4protected static StringgetResource(Object statement)通过反射的方式得到resource,能够兼容2.3.0和2.3.4static booleanisVersion2_3_4()static voidset(com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl session, com.ibatis.sqlmap.engine.impl.SqlMapClientImpl client)static com.ibatis.sqlmap.client.SqlMapExecutorsetClientImpl(com.ibatis.sqlmap.client.SqlMapExecutor session, SqlMapClientImplWrapper clientImplWrapper)
-
-
-
Method Detail
-
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)
-
-