Native Query Characteristics
The previous
paragraphnew reveals the need of a new querying technology native to modern
development languages. This new
technology was developed by W.Cook
and C.Rosenberger and named Native Queries.
Native Queries are characterized by the following:
- 100% native: Queries are completely
expressed in the implementation language (Java or c#), and they fully obey
all language semantics.
- 100% object-oriented: Queries are runnable in the
language itself, to allow unoptimized execution against plain collections
without custom preprocessing.
- 100% type-safe: Queries are fully accessible to modern IDE
features like syntax checking,
type checking, refactoring, etc.
- optimizable: It is possible to translate a native query to a
persistence architecture's query language or API for performance
optimization. This is done at compile time or at load time by source code
or bytecode analysis and translation. However, not every construct within
a Native Query can be optimized.