Class AbstractCorrelatedBatchTupleListTransformer
java.lang.Object
com.blazebit.persistence.view.impl.objectbuilder.transformer.TupleListTransformer
com.blazebit.persistence.view.impl.objectbuilder.transformer.correlation.AbstractCorrelatedTupleListTransformer
com.blazebit.persistence.view.impl.objectbuilder.transformer.correlation.AbstractCorrelatedBatchTupleListTransformer
- Direct Known Subclasses:
CorrelatedCollectionBatchTupleListTransformer
,CorrelatedMapBatchTupleListTransformer
,CorrelatedSingularBatchTupleListTransformer
public abstract class AbstractCorrelatedBatchTupleListTransformer extends AbstractCorrelatedTupleListTransformer
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blazebit.persistence.view.impl.objectbuilder.transformer.correlation.AbstractCorrelatedTupleListTransformer
AbstractCorrelatedTupleListTransformer.FixedArrayList, AbstractCorrelatedTupleListTransformer.TuplePromise
-
Field Summary
Fields Modifier and Type Field Description protected int
batchSize
protected boolean
correlatesThis
static String
CORRELATION_KEY_ALIAS
protected String
correlationParamName
protected String
correlationSelectExpression
protected CriteriaBuilder<?>
criteriaBuilder
protected CorrelatedSubqueryEmbeddingViewJpqlMacro
embeddingViewJpqlMacro
protected BatchCorrelationMode
expectBatchCorrelationMode
protected int
keyIndex
protected javax.persistence.Query
query
protected int
valueIndex
protected CorrelatedSubqueryViewRootJpqlMacro
viewRootJpqlMacro
Fields inherited from class com.blazebit.persistence.view.impl.objectbuilder.transformer.correlation.AbstractCorrelatedTupleListTransformer
attributePath, containerAccumulator, correlationAlias, correlationBasisEntity, correlationBasisType, correlationExternalAlias, correlationProviderFactory, correlationResult, correlator, embeddingViewIndex, embeddingViewType, EMPTY, entityViewConfiguration, fetches, indexCorrelator, indexExpression, indexFetches, jpaProvider, limiter, viewRootIndex, viewRootType
Fields inherited from class com.blazebit.persistence.view.impl.objectbuilder.transformer.TupleListTransformer
startIndex
-
Constructor Summary
Constructors Constructor Description AbstractCorrelatedBatchTupleListTransformer(ExpressionFactory ef, Correlator correlator, ContainerAccumulator<?> containerAccumulator, ManagedViewType<?> viewRootType, ManagedViewType<?> embeddingViewType, Expression correlationResult, CorrelationProviderFactory correlationProviderFactory, String attributePath, String[] fetches, String[] indexFetches, Expression indexExpression, Correlator indexCorrelator, boolean correlatesThis, int viewRootIndex, int embeddingViewIndex, int tupleIndex, int defaultBatchSize, Class<?> correlationBasisType, Class<?> correlationBasisEntity, Limiter limiter, EntityViewConfiguration entityViewConfiguration)
-
Method Summary
Modifier and Type Method Description protected void
populateParameters(FullQueryBuilder<?,?> queryBuilder)
protected void
populateResult(Map<Object,AbstractCorrelatedTupleListTransformer.TuplePromise> correlationValues, Object defaultKey, List<Object> list)
List<Object[]>
transform(List<Object[]> tuples)
Methods inherited from class com.blazebit.persistence.view.impl.objectbuilder.transformer.correlation.AbstractCorrelatedTupleListTransformer
copy, createContainer, createDefaultResult, fillDefaultValues, getConsumableIndex, getEntityIdName, isRecording, postConstruct
-
Field Details
-
CORRELATION_KEY_ALIAS
- See Also:
- Constant Field Values
-
batchSize
protected final int batchSize -
correlatesThis
protected final boolean correlatesThis -
expectBatchCorrelationMode
-
valueIndex
protected final int valueIndex -
keyIndex
protected final int keyIndex -
correlationParamName
-
correlationSelectExpression
-
criteriaBuilder
-
viewRootJpqlMacro
-
embeddingViewJpqlMacro
-
query
protected javax.persistence.Query query
-
-
Constructor Details
-
AbstractCorrelatedBatchTupleListTransformer
public AbstractCorrelatedBatchTupleListTransformer(ExpressionFactory ef, Correlator correlator, ContainerAccumulator<?> containerAccumulator, ManagedViewType<?> viewRootType, ManagedViewType<?> embeddingViewType, Expression correlationResult, CorrelationProviderFactory correlationProviderFactory, String attributePath, String[] fetches, String[] indexFetches, Expression indexExpression, Correlator indexCorrelator, boolean correlatesThis, int viewRootIndex, int embeddingViewIndex, int tupleIndex, int defaultBatchSize, Class<?> correlationBasisType, Class<?> correlationBasisEntity, Limiter limiter, EntityViewConfiguration entityViewConfiguration)
-
-
Method Details
-
transform
- Specified by:
transform
in classTupleListTransformer
-
populateParameters
- Overrides:
populateParameters
in classAbstractCorrelatedTupleListTransformer
-
populateResult
-