Class CorrelatedSubqueryEmbeddingViewJpqlMacro
java.lang.Object
com.blazebit.persistence.view.impl.macro.CorrelatedSubqueryViewRootJpqlMacro
com.blazebit.persistence.view.impl.macro.CorrelatedSubqueryEmbeddingViewJpqlMacro
- All Implemented Interfaces:
JpqlMacro
,EmbeddingViewJpqlMacro
,ViewRootJpqlMacro
public class CorrelatedSubqueryEmbeddingViewJpqlMacro extends CorrelatedSubqueryViewRootJpqlMacro implements EmbeddingViewJpqlMacro
- Since:
- 1.3.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static String
CORRELATION_EMBEDDING_VIEW_ALIAS
Fields inherited from class com.blazebit.persistence.view.impl.macro.CorrelatedSubqueryViewRootJpqlMacro
batchedViewRoot, CORRELATION_VIEW_ROOT_ALIAS, criteriaBuilder, nonIdUsed, optionalParameters, originalViewRootExpression, used, viewRootEntityType, viewRootExpression, viewRootIdParamName, viewRootIdPath, viewRootParamName
-
Constructor Summary
Constructors Constructor Description CorrelatedSubqueryEmbeddingViewJpqlMacro(FullQueryBuilder<?,?> criteriaBuilder, Map<String,Object> optionalParameters, boolean batchedViewRoot, Class<?> viewRootEntityType, String viewRootIdPath, String viewRootExpression, boolean batchedIdValues, CorrelatedSubqueryViewRootJpqlMacro viewRootJpqlMacro)
-
Method Summary
Modifier and Type Method Description void
addBatchPredicate(FullQueryBuilder<?,?> criteriaBuilder)
protected String
addViewRootNode()
String
getEmbeddingViewPath()
protected String
getIdParamName()
protected String
getParamName()
protected String
getViewRootExpression()
protected String
getViewRootIdPath()
void
render(FunctionRenderContext context)
void
setEmbeddingViewPath(String embeddingViewPath)
boolean
usesEmbeddingView()
Methods inherited from class com.blazebit.persistence.view.impl.macro.CorrelatedSubqueryViewRootJpqlMacro
addIdParamPredicate, generateParamName, getViewRoot, getViewRootEntityType, setEntityParam, setParameters, usesViewMacro, usesViewMacroNonId, usesViewRootEntityParameter
-
Field Details
-
Constructor Details
-
CorrelatedSubqueryEmbeddingViewJpqlMacro
public CorrelatedSubqueryEmbeddingViewJpqlMacro(FullQueryBuilder<?,?> criteriaBuilder, Map<String,Object> optionalParameters, boolean batchedViewRoot, Class<?> viewRootEntityType, String viewRootIdPath, String viewRootExpression, boolean batchedIdValues, CorrelatedSubqueryViewRootJpqlMacro viewRootJpqlMacro)
-
-
Method Details
-
usesEmbeddingView
public boolean usesEmbeddingView()- Specified by:
usesEmbeddingView
in interfaceEmbeddingViewJpqlMacro
-
getViewRootExpression
- Overrides:
getViewRootExpression
in classCorrelatedSubqueryViewRootJpqlMacro
-
getViewRootIdPath
- Overrides:
getViewRootIdPath
in classCorrelatedSubqueryViewRootJpqlMacro
-
getEmbeddingViewPath
- Specified by:
getEmbeddingViewPath
in interfaceEmbeddingViewJpqlMacro
-
setEmbeddingViewPath
- Specified by:
setEmbeddingViewPath
in interfaceEmbeddingViewJpqlMacro
-
getParamName
- Overrides:
getParamName
in classCorrelatedSubqueryViewRootJpqlMacro
-
getIdParamName
- Overrides:
getIdParamName
in classCorrelatedSubqueryViewRootJpqlMacro
-
addBatchPredicate
- Overrides:
addBatchPredicate
in classCorrelatedSubqueryViewRootJpqlMacro
-
addViewRootNode
- Overrides:
addViewRootNode
in classCorrelatedSubqueryViewRootJpqlMacro
-
render
- Specified by:
render
in interfaceJpqlMacro
- Overrides:
render
in classCorrelatedSubqueryViewRootJpqlMacro
-