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.
| Modifier and Type | Field and Description |
|---|---|
| public static final LiteralHandlingMode | |
| public static final LiteralHandlingMode | |
| public static final LiteralHandlingMode |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LiteralHandlingMode | Returns: associatedLiteralHandlingMode objectconfigured literalHandlingMode)LiteralHandlingMode representationInterpret the configured literalHandlingMode value. |
| public static LiteralHandlingMode | |
| public static LiteralHandlingMode[] |
| AUTO | back to summary |
|---|---|
| public static final LiteralHandlingMode AUTO | |
| BIND | back to summary |
|---|---|
| public static final LiteralHandlingMode BIND | |
| INLINE | back to summary |
|---|---|
| public static final LiteralHandlingMode INLINE | |
| LiteralHandlingMode | back to summary |
|---|---|
| private LiteralHandlingMode() | |
| interpret | back to summary |
|---|---|
| public static LiteralHandlingMode interpret(Object literalHandlingMode) Interpret the configured literalHandlingMode value.
Valid values are either a
| |
| valueOf | back to summary |
|---|---|
| public static LiteralHandlingMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static LiteralHandlingMode[] values() | |