org.z3950.zoom
Class CCLQuery

java.lang.Object
  |
  +--org.z3950.zoom.Query
        |
        +--org.z3950.zoom.CCLQuery

public class CCLQuery
extends Query

Represents a CCL query to be submitted to a Z39.50 Server.

Synopsis:

	Query q = new CCLQuery("ti=minerals and (ab=location or ab=place)",
	                       "qualset.properties");
	ResultSet rs = conn.search(q);
 

Queries in ZOOM may take various forms: objects of this class represent queries expressed in Common Command Language (CCL), as described in ISO 8777, and implemented in the Europagate CCL compiler. I'd like to include a reference to the standard, but in defiance of all rationality, ISO keeps its standards secret (presumably out of fear that someone might implement them), so the best I can offer is a reference to the CCL description that comes with the Yaz toolkit.

As with all ZOOM Query types, there are no methods apart from the constructor: the only thing you can do with a CCLQuery is feed it to Connection.search().

Version:
$Id: CCLQuery.java,v 1.3 2002/12/14 00:17:49 mike Exp $
See Also:
The Yaz toolkit's CCL documentation, Standards: Free or Sold? Comm. ACM, 38, 2 pp 23-27, zoom.z3950.org/api/zoom-1.1.html#3.3

Fields inherited from class org.z3950.zoom.Query
q
 
Constructor Summary
CCLQuery(java.lang.String ccl, java.lang.String qualset)
          Creates a new Query object representing the specified CCL query, with qualifiers interpreted according to the specified qualifier set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCLQuery

public CCLQuery(java.lang.String ccl,
                java.lang.String qualset)
Creates a new Query object representing the specified CCL query, with qualifiers interpreted according to the specified qualifier set.

In CCL, search terms may be preceded by qualifiers such as au (typically interpreted to mean search for an author's name) followed by an equals sign: for example, the CCL search ti=park might mean to search for books with the word ``park'' in their title.

The qualifier set is a bundle of configuration information which specifies how these CCL qualifiers should be mapped into a form that can be expressed in a native Z39.50 query structure.

Parameters:
ccl - The query itself expressed in CCL.
qualset - A reference to a qualifier set, in some form yet to be specified: perhaps the name of a Java properties file?
See Also:
zoom.z3950.org/api/zoom-1.1.html#3.3.2