Interface SQLRewriteContextDecorator<T extends org.apache.shardingsphere.infra.rule.ShardingSphereRule>

Type Parameters:
T - type of rule
All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<T>

public interface SQLRewriteContextDecorator<T extends org.apache.shardingsphere.infra.rule.ShardingSphereRule> extends org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<T>
SQL rewrite context decorator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(T rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, SQLRewriteContext sqlRewriteContext, RouteContext routeContext)
    Decorate SQL rewrite context.

    Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI

    getOrder, getTypeClass
  • Method Details

    • decorate

      void decorate(T rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, SQLRewriteContext sqlRewriteContext, RouteContext routeContext)
      Decorate SQL rewrite context.
      Parameters:
      rule - rule
      props - ShardingSphere properties
      sqlRewriteContext - SQL rewrite context to be decorated
      routeContext - route context