|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.data.cql.CQLQueryProcessor
public abstract class CQLQueryProcessor
CQLQueryProcessor
Abstract class the service providers must extend to process
CQL Queries to a caGrid data service.
A DataService instance will have only one instance of the query
processor, created on the first call to the query method. At creation
time, the processor will be configured via the initialize method.
All subsequent calls to the query method will simply invoke the
processQuery method.
| Constructor Summary | |
|---|---|
CQLQueryProcessor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getConfigurationUiClassname()
Get the classname of the configuration user interface for this CQL Query Processor. |
protected java.util.Properties |
getConfiguredParameters()
|
protected java.io.InputStream |
getConfiguredWsddStream()
|
java.util.Set<java.lang.String> |
getPropertiesFromEtc()
Get a set of property names whose values should be file names prepended with the location of the service's etc directory. |
java.util.Properties |
getRequiredParameters()
Get a Properties object of parameters the query processor will require on initialization. |
void |
initialize(java.util.Properties parameters,
java.io.InputStream wsdd)
Initialize the query processor with the properties it requires as specified in the Properties instance provided by getRequiredParameters(), and values populated by the user's custom entries, if any. |
abstract CQLQueryResults |
processQuery(CQLQuery cqlQuery)
Processes the CQL Query |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CQLQueryProcessor()
| Method Detail |
|---|
public void initialize(java.util.Properties parameters,
java.io.InputStream wsdd)
throws InitializationException
parameters - The parameters as configured by the user. The set of keys must contain all
of the keys contained in the Properties object returned
by getRequiredParamters(). The values in the parameters will
be either the user defined value or the default value from
getRequiredParameters().wsdd - The input stream which contains the wsdd configuration for the data service.
This stream may be important to locating type mappings for serializing and
deserializing beans.
InitializationExceptionprotected java.util.Properties getConfiguredParameters()
getRequiredParamters().
The values in the parameters will be either the user defined
value or the default value from getRequiredParameters().protected java.io.InputStream getConfiguredWsddStream()
public abstract CQLQueryResults processQuery(CQLQuery cqlQuery)
throws MalformedQueryException,
QueryProcessingException
cqlQuery -
MalformedQueryException - Should be thrown when the query itself does not conform to the
CQL standard or attempts to perform queries outside of
the exposed domain model
QueryProcessingException - Thrown for all exceptions in query processing not related
to the query being malformedpublic java.util.Properties getRequiredParameters()
public java.util.Set<java.lang.String> getPropertiesFromEtc()
public java.lang.String getConfigurationUiClassname()
gov.nih.nci.cagrid.data.cql.ui.CQLQueryProcessorConfigUI
null if no UI is provided
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||