public interface QueryHints
Usage examples:
query.setHint(QueryHints.SQL_HINT, "OPTION(RECOMPILE)"); query.setHint(QueryHints.MSSQL_RECOMPILE_HINT, true);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MSSQL_RECOMPILE_HINT
Adds
OPTION(RECOMPILE) SQL hint for MSSQL database. |
static java.lang.String |
SQL_HINT
Adds an SQL hint string after the SQL statement.
|
static final java.lang.String SQL_HINT
The SQL hint can be used on certain database platforms to define how the query uses indexes and other such low level usages. It should be the full hint string including the comment delimiters.
Corresponds to org.eclipse.persistence.config.QueryHints#HINT
static final java.lang.String MSSQL_RECOMPILE_HINT
OPTION(RECOMPILE)
SQL hint for MSSQL database. Hint value is ignored.