Package org.apache.polaris.service.types
Enum Class NotificationType
- All Implemented Interfaces:
Serializable,Comparable<NotificationType>,Constable
-
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 TypeMethodDescriptionReturn the display name of the notification typeintgetId()Return the internal id of the notification typestatic Optional<NotificationType> lookupById(int id) Lookup a notification type using its internal id representationstatic Optional<NotificationType> lookupByName(String name) Find the notification type by name, or return an empty optionalstatic NotificationTypeReturns the enum constant of this class with the specified name.static NotificationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Supported notification types for the update table notification. -
CREATE
-
UPDATE
-
DROP
-
VALIDATE
-
-
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
-
lookupById
Lookup a notification type using its internal id representation- Parameters:
id- internal id of the notification type- Returns:
- The notification type, if it exists, or empty
-
getId
public int getId()Return the internal id of the notification type- Returns:
- id
-
getDisplayName
Return the display name of the notification type -
lookupByName
Find the notification type by name, or return an empty optional- Parameters:
name- name of the notification type- Returns:
- The notification type, if it exists, or empty
-