ca.uhn.cache.impl
Class Query
java.lang.Object
ca.uhn.cache.impl.CommonsLangObject
ca.uhn.cache.impl.Query
- All Implemented Interfaces:
- IQuery, java.io.Serializable
- public class Query
- extends CommonsLangObject
- implements IQuery, java.io.Serializable
Generic implementation of the IQuery
interface.
- Version:
- $Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:32 $ by $Author: bryan_tripp $
- Author:
- Alexei Guevara
- See Also:
- Serialized Form
Constructor Summary |
Query()
Creates an empty query. |
Query(IQueryParam[] theParams)
Creates a query with the provided parameters. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Query
public Query()
- Creates an empty query.
Query
public Query(IQueryParam[] theParams)
- Creates a query with the provided parameters.
- Parameters:
theParams
- The query parameters.
addParameter
public void addParameter(IQueryParam theParam)
- Specified by:
addParameter
in interface IQuery
- Parameters:
theParam
- a parameter for a query, which is conjunctive with
other parameters. The parameter must be defined along a different
IDimension
than existing parameters.- See Also:
IQuery.addParameter(ca.uhn.cache.IQueryParam)
getParameters
public java.util.Set getParameters()
- Specified by:
getParameters
in interface IQuery
- Returns:
- all the
IQueryParam
s that make up this query - See Also:
IQuery.getParameters()
isEmpty
public boolean isEmpty()
-
- Specified by:
isEmpty
in interface IQuery
- Returns:
- true if this query contains no parameters.
getParamByDimension
public IQueryParam getParamByDimension(IDimension theDimension)
-
- Specified by:
getParamByDimension
in interface IQuery
- Parameters:
theDimension
- The specified dimension.
- Returns:
- The
IQueryParam
having the specified dimension, or null
if none has it.
Copyright © 2004-2005 University Health Network. All Rights Reserved.