public class SchemaInterceptor extends Object implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
| 构造器和说明 |
|---|
SchemaInterceptor(String tenantDatabasePrefix) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh,
Connection connection,
Integer transactionTimeout) |
void |
beforeQuery(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql) |
protected String |
changeTable(String sql) |
public SchemaInterceptor(String tenantDatabasePrefix)
public void beforeQuery(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql)
throws SQLException
beforeQuery 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorSQLExceptionpublic void beforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh,
Connection connection,
Integer transactionTimeout)
beforePrepare 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorCopyright © 2022. All rights reserved.