Package io.jmix.data
Class PersistenceHints
java.lang.Object
io.jmix.data.PersistenceHints
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringDefines a Jmix query hint which enable customization of generated SQL statements.static final StringHint that disables sending ofio.jmix.core.event.EntityChangedEventwhen saving entities throughDataManager.static final StringHint that disables sending ofio.jmix.core.event.EntitySavingEventwhen saving entities throughDataManager.static final Stringstatic final StringDefines a Jmix query hint which enable customization of generated SQL statements. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceHints.Builderbuilder()static Collection<FetchPlan> getFetchPlans(@Nullable Map<String, Object> properties) static booleanisSoftDeletion(jakarta.persistence.EntityManager entityManager)
-
Field Details
-
SOFT_DELETION
- See Also:
-
SKIP_ENTITY_SAVING_EVENT
Hint that disables sending ofio.jmix.core.event.EntitySavingEventwhen saving entities throughDataManager. Set the value totrueinSaveContexthints to suppress the event.Note: this also disables listeners that rely on the event, such as multitenancy tenant-id assignment.
- See Also:
-
SKIP_ENTITY_CHANGED_EVENT
Hint that disables sending ofio.jmix.core.event.EntityChangedEventwhen saving entities throughDataManager. Set the value totrueinSaveContexthints to suppress the event.Note: this also disables listeners that rely on the event, such as full-text search re-indexing.
- 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#HINTUsage 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(jakarta.persistence.EntityManager entityManager) -
getFetchPlans
-
builder
-