Uses of Package
org.apache.juneau.commons.beanquery
Packages that use org.apache.juneau.commons.beanquery
Package
Description
PostgreSQL support for the Juneau
BeanQuery SQL engine.Shared JDBC
BeanQueryContext plumbing for BeanQuery (design §5.3).A protocol-agnostic query API for filtering, sorting, and paging collections of beans (design §5).
The DataTables ↔
BeanQuery adapter.A typed, declarative "rich DataTables view" toolkit that serializes to the frozen
VIEW_META JSON wire
contract consumed by the first-party client runtime.HTTP Part Annotations
Petstore service layer (in-memory store).
REST Response Converters
-
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.beanquery.postgresClassDescriptionThe per-column value type that governs which search operators apply to a column and how a bare (no leading
$) pattern token is interpreted. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.beanquery.sqlClassDescriptionThe reusable, immutable, server-side half of a BeanQuery engine: which columns may be searched, sorted and viewed, which operators apply, and the limits every session enforces.The settings every engine's context builder shares.One unit of query work against a
BeanQueryContext: the rows (or connection) to query, plus optional per-request narrowing of the context's settings.The settings every engine's session builder shares.The two neutral row counts a session can report:Counts.total()(the rows in scope before the query's search) andCounts.matched()(the rows that survive the search, before any page limit).A resolved, engine-neutral search tree (design §7) — theResolvedQuery.filter()replacement for the earlier flatTerm/terms()list.One page of query results, plus the optional counts selected by the session'sCountPolicy.ABeanQueryafter validation: the engine-neutral input to every engine hook.The per-column value type that governs which search operators apply to a column and how a bare (no leading$) pattern token is interpreted. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.commons.beanqueryClassDescriptionA protocol-agnostic query request against a collection of beans: what to search, which columns to return, how to sort, and which page to return (design §5.1, §5.3).Builds an immutable
BeanQuery.A group of cross-column conditions built withBeanQuery.Builder.or(Consumer),BeanQuery.Builder.and(Consumer), orBeanQuery.Builder.not(Consumer).The reusable, immutable, server-side half of a BeanQuery engine: which columns may be searched, sorted and viewed, which operators apply, and the limits every session enforces.The settings every engine's context builder shares.One unit of query work against aBeanQueryContext: the rows (or connection) to query, plus optional per-request narrowing of the context's settings.The settings every engine's session builder shares.Stable identity for aBeanQuerySyntaxException, independent of the (free-text) message.Which counts afind/findValuescall computes alongside its page of rows.What a caller asksBeanQuery.Builder.counts(CountRequest)to write onto aBeanQuery'sopts(design §5).The two neutral row counts a session can report:Counts.total()(the rows in scope before the query's search) andCounts.matched()(the rows that survive the search, before any page limit).A resolved, engine-neutral search tree (design §7) — theResolvedQuery.filter()replacement for the earlier flatTerm/terms()list.The in-memoryBeanQueryContext: runsBeanQuerys against an in-JVM collection of beans or maps.Builder forInMemoryBeanQueryContext.ABeanQuerySessionover one in-memory collection.Builder forInMemoryBeanQuerySession.One page of query results, plus the optional counts selected by the session'sCountPolicy.The query view of a bean class: its readable properties (query columns), its writable properties, and how to create an instance.One bean property as BeanQuery sees it: its column name, value type and inferredSearchType, and how to read and write it.A signed, relative-to-request-time duration value: wire literal[+-]<n>(ms|s|m|h|d)(a request-time offset that stays a plain literal on the wire).The duration unit, with its lowercase wire token (design review §3 Gap 2).ABeanQueryafter validation: the engine-neutral input to every engine hook.One sort key: its column, the column's value type, and the direction.One node of the parse tree produced bySearchExpressionParser: the resolved, validated form of a column's$-search expression that a context walks to filter rows or build SQL.The immutable definition of a single$-search operator — its$-name, arity, the value types it applies to, and its popup help text.Builder forSearchOperator.An immutable, ordered collection ofSearchOperators that governs which$-operators the parser recognizes.The leaf predicate an application supplies for a custom search operator so the in-memory context can evaluate it against a cell value (design §5.3).The per-column value type that governs which search operators apply to a column and how a bare (no leading$) pattern token is interpreted. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.console.datatables.adapterClassDescriptionA protocol-agnostic query request against a collection of beans: what to search, which columns to return, how to sort, and which page to return (design §5.1, §5.3).The reusable, immutable, server-side half of a BeanQuery engine: which columns may be searched, sorted and viewed, which operators apply, and the limits every session enforces.One unit of query work against a
BeanQueryContext: the rows (or connection) to query, plus optional per-request narrowing of the context's settings. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.console.viewsClassDescriptionThe immutable definition of a single
$-search operator — its$-name, arity, the value types it applies to, and its popup help text.An immutable, ordered collection ofSearchOperators that governs which$-operators the parser recognizes.The per-column value type that governs which search operators apply to a column and how a bare (no leading$) pattern token is interpreted. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.httpClassDescriptionA protocol-agnostic query request against a collection of beans: what to search, which columns to return, how to sort, and which page to return (design §5.1, §5.3).
-
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.petstore.serviceClassDescriptionThe in-memory
BeanQueryContext: runsBeanQuerys against an in-JVM collection of beans or maps.ABeanQuerySessionover one in-memory collection. -
Classes in org.apache.juneau.commons.beanquery used by org.apache.juneau.rest.server.converterClassDescriptionThe settings every engine's context builder shares.Which counts a
find/findValuescall computes alongside its page of rows.