Top Description Fields Constructors Methods
org.hibernate.query.criteria

public final Enum LiteralHandlingMode

extends Enum<LiteralHandlingMode>
Class Inheritance
Imports
org.hibernate.HibernateException

This enum defines how literals are handled by JPA Criteria. By default (AUTO), Criteria queries uses bind parameters for any literal that is not a numeric value. However, to increase the likelihood of JDBC statement caching, you might want to use bind parameters for numeric values too. The BIND mode will use bind variables for any literal value. The INLINE mode will inline literal values as-is. To prevent SQL injection, never use INLINE with String variables. Always use constants with the INLINE mode.
Author
Vlad Mihalcea

Field Summary

Modifier and TypeField and Description
public static final LiteralHandlingMode
public static final LiteralHandlingMode
public static final LiteralHandlingMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LiteralHandlingMode

Returns:

associated LiteralHandlingMode object
interpret
(Object
configured LiteralHandlingMode representation
literalHandlingMode
)

Interpret the configured literalHandlingMode value.

public static LiteralHandlingMode
public static LiteralHandlingMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AUTOback to summary
public static final LiteralHandlingMode AUTO
BINDback to summary
public static final LiteralHandlingMode BIND
INLINEback to summary
public static final LiteralHandlingMode INLINE

Constructor Detail

LiteralHandlingModeback to summary
private LiteralHandlingMode()

Method Detail

interpretback to summary
public static LiteralHandlingMode interpret(Object literalHandlingMode)

Interpret the configured literalHandlingMode value. Valid values are either a LiteralHandlingMode object or its String representation. For string values, the matching is case insensitive, so you can use either AUTO or auto.

Parameters
literalHandlingMode:Object

configured LiteralHandlingMode representation

Returns:LiteralHandlingMode

associated LiteralHandlingMode object

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