Enum Class ListGridRecordState
- All Implemented Interfaces:
Serializable
,Comparable<ListGridRecordState>
,Constable
An enum containing all possible record states in the list grid.
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRecords that are in the database but are already deleted from the list grid are called “deleted”.Records that are in the memory and in the database as well, but at least one of their attributes differ or the number of their attributes differ are called “modified”.Records that are only stored in the memory, but are not yet saved to the database are called “new” records.Records that match those in the database are called “persisted”. -
Method Summary
Modifier and TypeMethodDescriptionstatic ListGridRecordState
Returns the enum constant of this class with the specified name.static ListGridRecordState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERSISTED
Records that match those in the database are called “persisted”. The record in the memory is the same as the one in the database (including the number and the values of their attributes, respectively). -
NEW
Records that are only stored in the memory, but are not yet saved to the database are called “new” records. -
MODIFIED
Records that are in the memory and in the database as well, but at least one of their attributes differ or the number of their attributes differ are called “modified”. -
DELETED
Records that are in the database but are already deleted from the list grid are called “deleted”.
-
-
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
-
getStyleClass
- Returns:
- The record state’s style class or
null
if there is no style class for the record
-