@API(status=STABLE,
since="2021.1.0")
public sealed interface StatementContext
Context for while rendering a statement.
- Since:
- 2021.1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiongetParameterName(Parameter<?> parameter) Gets or creates the name of a parameterbooleanSome parameters may be rendered as constants.
-
Method Details
-
getParameterName
Gets or creates the name of a parameter- Parameters:
parameter- The parameter whose name should be retrieved- Returns:
- The name of the parameter or a generated name
-
isRenderConstantsAsParameters
boolean isRenderConstantsAsParameters()Some parameters may be rendered as constants.- Returns:
- true if objects passed via the QueryDSL context as parameters should be rendered as Cypher-String constants rather than actual Cypher parameters.
-