Class PromptConnectionOptionValue

  • All Implemented Interfaces:
    Serializable

    public final class PromptConnectionOptionValue
    extends Object
    implements Serializable
    Represents a prompt connection option that the user can select. Used by the prompt query UI, which requires the user to select a connection to use for executing the query.
    Since:
    8.5.0
    See Also:
    Serialized Form
    • Method Detail

      • getValue

        public Object getValue()
      • getValueAsGroup

        public String getValueAsGroup()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isGroup

        public boolean isGroup()
      • connection

        public static PromptConnectionOptionValue connection​(PromptScope assignee,
                                                             UUID connection)
        Creates a new connection option value that represents a specific connection.
        Parameters:
        assignee - The assignee of the connection.
        connection - The UUID of the connection.
        Returns:
        The connection option value.
      • connection

        public static PromptConnectionOptionValue connection​(PromptObjectIdentifier connection)
        Creates a new connection option value that represents a specific connection.
        Parameters:
        connection - The connection reference.
        Returns:
        The connection option value.
      • group

        public static PromptConnectionOptionValue group​(String type)
        Creates a new group option value that groups connections of the given type.
        Parameters:
        type - The group type.
        Returns:
        The group option value.