Package io.jmix.appsettings
Enum Class AppSettingsEntityLoadMode
- All Implemented Interfaces:
Serializable,Comparable<AppSettingsEntityLoadMode>,Constable
Defines how application settings entity should be resolved for the current context.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AppSettingsEntityLoadModeReturns the enum constant of this class with the specified name.static AppSettingsEntityLoadMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOR_READ
Loads settings for reading.Use this mode when effective settings values are needed. For tenant-aware settings it returns the tenant-specific record if it exists, otherwise falls back to the global record.
-
FOR_SAVE
Loads settings for saving.Use this mode when the returned entity will be updated and saved. For tenant-aware settings it returns the tenant-specific record if it exists, otherwise creates a new tenant-specific record instead of updating the global fallback record.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-