Class ConsoleAttachmentQuery

All Implemented Interfaces:
RemoteQuery<QueryAttachmentResults>, Serializable

public class ConsoleAttachmentQuery extends ContextAwareRemoteQuery<QueryAttachmentResults>
Creates a new script session. The two use cases are creating a new script session for an interactive console; and for attaching a session to a persistent query. When attaching to an existing persistent query, the user executing the query must be an owner or admin of the query. The variables in the persistent query's primary script session are copied into the new script session's binding unless the session is "dynamic", at which point the single script session is shared across instances.
See Also:
  • Field Details

    • ALLOW_ADMIN_CONSOLE_ATTACHMENT

      public static final boolean ALLOW_ADMIN_CONSOLE_ATTACHMENT
  • Constructor Details

    • ConsoleAttachmentQuery

      public ConsoleAttachmentQuery(SessionType sessionType)
  • Method Details

    • execute

      public QueryAttachmentResults execute(Database database)
      Description copied from interface: RemoteQuery
      Execute a query on a remote host.
      Parameters:
      database - database to use for execution.
      Returns:
      result of the query.