The Oracle Commerce Platform’s Repository Query Language, or RQL, is a generic language for formulating queries that map to any repository implementation, such as SQL or LDAP. The repository connectors translate those queries into a syntax that the underlying data store understands.
You can use RQL in several different ways:
Use RQL servlet beans in a JSP to perform repository queries:
RQLQueryForEachandRQLQueryRange. For detailed information about these servlet beans, see the Page Developer's Guide.Define an RQL filter that is implicitly applied to all queries performed by the repository. See Repository Filtering in the SQL Repository Queries chapter.
Include RQL queries in
<query-items>tags in the XML repository definition file. This is mainly useful for unit testing queries; it can also be used to preload repository caches. See Querying Items in the Developing and Testing an SQL Repository chapter and Preloading Caches in the SQL Repository Caching chapter.Use RQL directly by creating an
atg.repository.rql.RqlStatementobject. You can get anRqlQueryobject from theRqlStatementobject, then get anatg.repository.Queryobject from theRqlQueryobject. This approach can be simpler than using aQueryBuilderimplementation to create aQueryobject.
This section describes the details of RQL syntax and structure.

