Package io.jmix.data
Class PersistenceHints
java.lang.Object
io.jmix.data.PersistenceHints
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceHints.Builder
builder()
static Collection<FetchPlan>
getFetchPlans
(Map<String, Object> properties) static boolean
isSoftDeletion
(javax.persistence.EntityManager entityManager)
-
Field Details
-
SOFT_DELETION
- See Also:
-
FETCH_PLAN
- See Also:
-
CACHEABLE
- See Also:
-
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
Defines a Jmix query hint which enable customization of generated SQL statements. AddsOPTION(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
-
isSoftDeletion
public static boolean isSoftDeletion(javax.persistence.EntityManager entityManager) -
getFetchPlans
-
builder
-