Class PromptConnectionOptionValue

java.lang.Object
de.xima.fc.prompt.mgmt.gui.model.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:
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getValue

      public Object getValue()
    • getValueAsConnection

      public PromptObjectIdentifier getValueAsConnection()
    • getValueAsGroup

      public String getValueAsGroup()
    • hashCode

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

      public boolean isGroup()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.