Package io.jmix.data

Class PersistenceHints

java.lang.Object
io.jmix.data.PersistenceHints

public class PersistenceHints extends Object
  • Field Details

    • SOFT_DELETION

      public static final String SOFT_DELETION
      See Also:
    • FETCH_PLAN

      public static final String FETCH_PLAN
      See Also:
    • CACHEABLE

      public static final String CACHEABLE
      See Also:
    • SQL_HINT

      public static final String SQL_HINT
      Defines a Jmix query hint which enable customization of generated SQL statements. Adds an SQL hint string after the SQL statement.

      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

      Usage examples:

          query.setHint(PersistenceHints.SQL_HINT, "OPTION(RECOMPILE)");
       
      See Also:
    • MSSQL_RECOMPILE_HINT

      public static final String MSSQL_RECOMPILE_HINT
      Defines a Jmix query hint which enable customization of generated SQL statements. Adds OPTION(RECOMPILE) SQL hint for MSSQL database. Hint value is ignored.

      Usage examples:

          query.setHint(PersistenceHints.MSSQL_RECOMPILE_HINT, true);
       
      See Also:
  • Constructor Details

    • PersistenceHints

      public PersistenceHints()
  • Method Details