Module bus.pager

Class BoundSqlChainBuilder

java.lang.Object
org.miaixz.bus.pager.builder.BoundSqlChainBuilder
All Implemented Interfaces:
BoundSqlBuilder.Chain

public class BoundSqlChainBuilder extends Object implements BoundSqlBuilder.Chain
A builder for a chain of BoundSqlBuilder instances. This class allows multiple BoundSql processors to be applied sequentially.
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • BoundSqlChainBuilder

      public BoundSqlChainBuilder(BoundSqlBuilder.Chain original, List<BoundSqlBuilder> interceptors)
      Constructs a BoundSqlChainBuilder with an original chain and a list of interceptors.
      Parameters:
      original - the original chain to delegate to
      interceptors - the list of BoundSqlBuilder interceptors
  • Method Details

    • doBoundSql

      public org.apache.ibatis.mapping.BoundSql doBoundSql(BoundSqlBuilder.Type type, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey cacheKey)
      Executes the BoundSql processing chain. If the chain is not yet executable, it creates a new executable chain.
      Specified by:
      doBoundSql in interface BoundSqlBuilder.Chain
      Parameters:
      type - the type of SQL operation
      boundSql - the BoundSql object for the current operation
      cacheKey - the CacheKey associated with the current query
      Returns:
      the processed BoundSql object