Top Description Fields Constructors Methods
org.hibernate.sql.ast

public final Enum SqlAstNodeRenderingMode

extends Enum<SqlAstNodeRenderingMode>
Class Inheritance
Imports
org.hibernate.sql.ast.tree.SqlAstNode

The rendering mode to use for SqlAstNode. Some functions/contexts require the use of literals/expressions rather than parameters like for example the `char` function in Derby which requires the length as literal. Another example is a function that renders a function argument into a subquery select and group by item. It can use INLINE_PARAMETERS so that a database can match such a select item to a group by item. Without this, such queries would result in a query error.
Author
Christian Beikov
See Also
SqlAstTranslator#render(SqlAstNode, SqlAstNodeRenderingMode)

Field Summary

Modifier and TypeField and Description
public static final SqlAstNodeRenderingMode
DEFAULT

Render node as is.

public static final SqlAstNodeRenderingMode
INLINE_ALL_PARAMETERS

Render all nested parameters as literals.

public static final SqlAstNodeRenderingMode
INLINE_PARAMETERS

Render parameters as literals.

public static final SqlAstNodeRenderingMode
NO_PLAIN_PARAMETER

Don't render plain parameters.

public static final SqlAstNodeRenderingMode
NO_UNTYPED

Don't render untyped expressions e.g. plain parameters or null literals.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SqlAstNodeRenderingMode
public static SqlAstNodeRenderingMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final SqlAstNodeRenderingMode DEFAULT

Render node as is.

INLINE_ALL_PARAMETERSback to summary
public static final SqlAstNodeRenderingMode INLINE_ALL_PARAMETERS

Render all nested parameters as literals. All parameters within the SqlAstNode are rendered as literals.

INLINE_PARAMETERSback to summary
public static final SqlAstNodeRenderingMode INLINE_PARAMETERS

Render parameters as literals. All parameters within the SqlAstNode are rendered as literals.

NO_PLAIN_PARAMETERback to summary
public static final SqlAstNodeRenderingMode NO_PLAIN_PARAMETER

Don't render plain parameters. Render it as literal or as expression. If the SqlAstNode to render is a parameter, it will be rendered either as literal or wrapped into a semantically equivalent expression such that it doesn't appear as plain parameter.

NO_UNTYPEDback to summary
public static final SqlAstNodeRenderingMode NO_UNTYPED

Don't render untyped expressions e.g. plain parameters or null literals. Render it as literal or as expression. If the SqlAstNode to render is a parameter, it will be rendered either as literal or wrapped into a semantically equivalent expression such that it doesn't appear as plain parameter. null literals will be wrapped in a cast.

Constructor Detail

SqlAstNodeRenderingModeback to summary
private SqlAstNodeRenderingMode()

Method Detail

valueOfback to summary
public static SqlAstNodeRenderingMode valueOf(String name)
valuesback to summary
public static SqlAstNodeRenderingMode[] values()