Interface QueryBuilder


public interface QueryBuilder
A graphical query builder for creating/editing/executing queries.
  • Method Details

    • getQuery

      MTQuery getQuery()
      Returns the current query.
    • setQuery

      void setQuery(MTQuery query)
      Sets the builder state from an existing query.
    • getBuilderUI

      JComponent getBuilderUI()
      Returns the UI component used for creating/editing the query.
    • dispose

      void dispose()
      Disposes of all resources that the builder has.
    • addChangeListener

      void addChangeListener(ChangeListener cl)
      Adds a change listener that will be notified every time a change is made to the query state. Note that queries are immutable so you need to fetch a new query reference with getQuery, old references will not be updated.
    • removeChangeListener

      void removeChangeListener(ChangeListener cl)
      Removes a change listener from the query builder.
    • setRowIdSupplier

      void setRowIdSupplier(Supplier<Collection<QueryBuilder.RowId>> supplier)
      Some filters needs a set of row ID:s to be applied. If a supplier for row ID:s has been set on the builder these filters will be available.
    • isEditable

      boolean isEditable()
      Returns true if the query can be modified with filters.