@Intercepts(value=@Signature(type=org.apache.ibatis.executor.Executor.class,method="update",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class}))
public class AutoKeyInterceptor
extends java.lang.Object
implements org.apache.ibatis.plugin.Interceptor
| Constructor and Description |
|---|
AutoKeyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
initKeyGenerators() |
java.lang.Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
java.lang.Object |
plugin(java.lang.Object target) |
void |
setKeyGenerators(java.util.Map<java.lang.String,org.apache.ibatis.executor.keygen.KeyGenerator> keyGenerators) |
void |
setProperties(java.util.Properties properties) |
public void initKeyGenerators()
public java.lang.Object intercept(org.apache.ibatis.plugin.Invocation invocation)
throws java.lang.Throwable
intercept in interface org.apache.ibatis.plugin.Interceptorjava.lang.Throwablepublic java.lang.Object plugin(java.lang.Object target)
plugin in interface org.apache.ibatis.plugin.Interceptorpublic void setProperties(java.util.Properties properties)
setProperties in interface org.apache.ibatis.plugin.Interceptorpublic void setKeyGenerators(java.util.Map<java.lang.String,org.apache.ibatis.executor.keygen.KeyGenerator> keyGenerators)