类 SchemaInterceptor

java.lang.Object
top.tangyh.basic.database.plugins.SchemaInterceptor
所有已实现的接口:
com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor

public class SchemaInterceptor extends Object implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
SCHEMA模式插件
作者:
zuihou
  • 构造器概要

    构造器
    构造器
    说明
    SchemaInterceptor(String tenantDatabasePrefix, String owner, com.baomidou.mybatisplus.annotation.DbType dbType)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    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
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor

    beforeGetBoundSql, beforeUpdate, setProperties, willDoQuery, willDoUpdate
  • 构造器详细资料

    • SchemaInterceptor

      public SchemaInterceptor(String tenantDatabasePrefix, String owner, com.baomidou.mybatisplus.annotation.DbType dbType)
  • 方法详细资料

    • changeTable

      protected String changeTable(String sql)
    • 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