|
@@ -1,3 +1,4 @@
|
|
|
|
|
+/*
|
|
|
package org.jeecg.ctop.material.service.impl;
|
|
package org.jeecg.ctop.material.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -12,9 +13,11 @@ import java.sql.Connection;
|
|
|
import java.sql.Statement;
|
|
import java.sql.Statement;
|
|
|
import java.util.Properties;
|
|
import java.util.Properties;
|
|
|
|
|
|
|
|
|
|
+*/
|
|
|
/**
|
|
/**
|
|
|
* 使用MetaObject安全获取字段的TiFlash拦截器
|
|
* 使用MetaObject安全获取字段的TiFlash拦截器
|
|
|
- */
|
|
|
|
|
|
|
+ *//*
|
|
|
|
|
+
|
|
|
@Intercepts({
|
|
@Intercepts({
|
|
|
@Signature(type = Executor.class, method = "query",
|
|
@Signature(type = Executor.class, method = "query",
|
|
|
args = {MappedStatement.class, Object.class,
|
|
args = {MappedStatement.class, Object.class,
|
|
@@ -62,9 +65,11 @@ public class SafeTiFlashInterceptor implements Interceptor {
|
|
|
return invocation.proceed();
|
|
return invocation.proceed();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
|
|
+ */
|
|
|
|
|
+/**
|
|
|
* 获取真实的Connection对象(处理代理)
|
|
* 获取真实的Connection对象(处理代理)
|
|
|
- */
|
|
|
|
|
|
|
+ *//*
|
|
|
|
|
+
|
|
|
private Connection getRealConnection(Connection connection) {
|
|
private Connection getRealConnection(Connection connection) {
|
|
|
try {
|
|
try {
|
|
|
if (Proxy.isProxyClass(connection.getClass())) {
|
|
if (Proxy.isProxyClass(connection.getClass())) {
|
|
@@ -91,4 +96,4 @@ public class SafeTiFlashInterceptor implements Interceptor {
|
|
|
@Override
|
|
@Override
|
|
|
public void setProperties(Properties properties) {
|
|
public void setProperties(Properties properties) {
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}*/
|