@Intercepts(value=@Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class}))
public class TableShardPlugin
extends Object
implements org.apache.ibatis.plugin.Interceptor
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SHARDING_CONFIG |
static String |
STRATEGY_CONFIG |
| 构造器和说明 |
|---|
TableShardPlugin() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getScanPackage() |
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
Object |
plugin(Object target) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setProperties(Properties properties) |
void |
setScanPackage(String scanPackage) |
public String getScanPackage()
public void setScanPackage(String scanPackage)
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.Interceptorpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Copyright © 2018. All rights reserved.