Class SQLRewriteEntry

java.lang.Object
org.apache.shardingsphere.infra.rewrite.SQLRewriteEntry

public final class SQLRewriteEntry extends Object
SQL rewrite entry.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SQLRewriteEntry(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, org.apache.shardingsphere.infra.metadata.database.rule.ShardingSphereRuleMetaData globalRuleMetaData, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    rewrite(String sql, List<Object> params, org.apache.shardingsphere.infra.binder.statement.SQLStatementContext<?> sqlStatementContext, RouteContext routeContext, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
    Rewrite.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SQLRewriteEntry

      public SQLRewriteEntry(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, org.apache.shardingsphere.infra.metadata.database.rule.ShardingSphereRuleMetaData globalRuleMetaData, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props)
  • Method Details

    • rewrite

      public SQLRewriteResult rewrite(String sql, List<Object> params, org.apache.shardingsphere.infra.binder.statement.SQLStatementContext<?> sqlStatementContext, RouteContext routeContext, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
      Rewrite.
      Parameters:
      sql - SQL
      params - SQL parameters
      sqlStatementContext - SQL statement context
      routeContext - route context
      connectionContext - connection context
      Returns:
      route unit and SQL rewrite result map