类 SchemaModeInterceptor
- java.lang.Object
-
- org.shoulder.data.mybatis.interceptor.tenants.SchemaModeInterceptor
-
- 所有已实现的接口:
com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
public class SchemaModeInterceptor extends Object implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
多租户 - SCHEMA 模式插件- 作者:
- lym
-
-
构造器概要
构造器 构造器 说明 SchemaModeInterceptor(String tenantDatabasePrefix)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbeforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh, Connection connection, Integer transactionTimeout)voidbeforeQuery(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 StringchangeSchema(String sql)
-
-
-
构造器详细资料
-
SchemaModeInterceptor
public SchemaModeInterceptor(String tenantDatabasePrefix)
-
-
方法详细资料
-
beforeQuery
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.InnerInterceptor- 抛出:
SQLException
-
beforePrepare
public void beforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh, Connection connection, Integer transactionTimeout)- 指定者:
beforePrepare在接口中com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
-
-