类 SchemaModeInterceptor

  • 所有已实现的接口:
    com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor

    public class SchemaModeInterceptor
    extends Object
    implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
    多租户 - SCHEMA 模式插件
    作者:
    lym
    • 构造器详细资料

      • 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
      • changeSchema

        protected String changeSchema​(String sql)