java.lang.Object
org.miaixz.bus.pager.builder.BoundSqlChainBuilder
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from interface org.miaixz.bus.pager.builder.BoundSqlBuilder.Chain
DO_NOTHING -
Constructor Summary
ConstructorsConstructorDescriptionBoundSqlChainBuilder(BoundSqlBuilder.Chain original, List<BoundSqlBuilder> interceptors) Constructs a BoundSqlChainBuilder with an original chain and a list of interceptors. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ibatis.mapping.BoundSqldoBoundSql(BoundSqlBuilder.Type type, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey cacheKey) Executes the BoundSql processing chain.
-
Constructor Details
-
BoundSqlChainBuilder
Constructs a BoundSqlChainBuilder with an original chain and a list of interceptors.- Parameters:
original- the original chain to delegate tointerceptors- 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:
doBoundSqlin interfaceBoundSqlBuilder.Chain- Parameters:
type- the type of SQL operationboundSql- the BoundSql object for the current operationcacheKey- the CacheKey associated with the current query- Returns:
- the processed BoundSql object
-