Package oracle.spatial.objtrkr
Enum Tracker.NotificationType
- java.lang.Object
-
- java.lang.Enum<Tracker.NotificationType>
-
- oracle.spatial.objtrkr.Tracker.NotificationType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Tracker.NotificationType>
- Enclosing class:
- Tracker
public static enum Tracker.NotificationType extends java.lang.Enum<Tracker.NotificationType>
The type of notifications that can be subscribed to
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSIDEOUTSIDETRANSITION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tracker.NotificationTypeget(java.lang.String stateString)Convert a state string from database into INSIDE/OUTSIDE.chargetDbNotification()The database command to get this type of notificationjava.lang.StringgetStateString()The state string in a notification that corresponds to this state.static Tracker.NotificationTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Tracker.NotificationType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSIDE
public static final Tracker.NotificationType INSIDE
-
OUTSIDE
public static final Tracker.NotificationType OUTSIDE
-
TRANSITION
public static final Tracker.NotificationType TRANSITION
-
-
Method Detail
-
values
public static Tracker.NotificationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Tracker.NotificationType c : Tracker.NotificationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tracker.NotificationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getDbNotification
public char getDbNotification()
The database command to get this type of notification- Returns:
- a character to be passed to the database
-
getStateString
public java.lang.String getStateString()
The state string in a notification that corresponds to this state.- Returns:
- the notification string from the database, or NULL for transition (database returns inside or outside only)
-
get
public static Tracker.NotificationType get(java.lang.String stateString)
Convert a state string from database into INSIDE/OUTSIDE.- Parameters:
stateString- the string to convert- Returns:
- the corresponding enum
-
-