Interface QueryBuilder
public interface QueryBuilder
A graphical query builder for creating/editing/executing queries.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a change listener that will be notified every time a change is made to the query state.void
dispose()
Disposes of all resources that the builder has.Returns the UI component used for creating/editing the query.getQuery()
Returns the current query.boolean
Returns true if the query can be modified with filters.void
Removes a change listener from the query builder.void
Sets the builder state from an existing query.void
setRowIdSupplier
(Supplier<Collection<QueryBuilder.RowId>> supplier) Some filters needs a set of row ID:s to be applied.
-
Method Details
-
getQuery
MTQuery getQuery()Returns the current query. -
setQuery
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
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 withgetQuery
, old references will not be updated. -
removeChangeListener
Removes a change listener from the query builder. -
setRowIdSupplier
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.
-