Package org.keel.services.query
Query and Reporting Service.
See:
Description
| Interface Summary |
| Query |
This component provides a general-purpose interface to Queries against persistent stores. |
Package org.keel.services.query Description
Query and Reporting Service.
Overview
This package contains the describing interfaces for the Query service for Keel. This is a general-purpose mechanism for searching various types of persistent store, such as databases, filesystems, LDAP, etc, to produce both "key" lists and complete query results.
The two main interfaces involved with this process are Criteria and Query. Criteria is designed to be a fairly lightweight query mechanism which produces *only* a list of keys, or object identifiers, in response to an execution. These keys can then be passed to a Query object to produce a set of full query results. This allows multiple Criteria to be applied to a single query, or Criteria to be derived from one data source (e.g. LDAP or Lucene), and the Query to be executed on another data source (e.g. a JDBC database)
In some cases, it may be better to use Query directly. A query can be directly passed "criteria" - basically the variables that allow a Query to be configured, and the query executed with this criteria. The simplest example of this is an SQL-based query, which can have some fields dynamically specified at runtime. All criteria return a list of Map objects, where the map objects contain each result of the Query's execution.
Please see keelframework.org for information about new Keel releases.