uk.ac.ic.doc.rodex.qproc
Class QueryDescription
java.lang.Object
uk.ac.ic.doc.rodex.qproc.QueryDescription
- All Implemented Interfaces:
- PersistentObject
public class QueryDescription
- extends java.lang.Object
- implements PersistentObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIB_SCHEMA_NAME
public static final java.lang.String ATTRIB_SCHEMA_NAME
- See Also:
- Constant Field Values
ATTRIB_QUERY
public static final java.lang.String ATTRIB_QUERY
- See Also:
- Constant Field Values
NULL_VALUE
public static final java.lang.String NULL_VALUE
- See Also:
- Constant Field Values
QueryDescription
public QueryDescription(java.lang.String schemaName,
java.lang.String query,
QualityIndicator qi)
- Creates a new instance of QueryDescription
- Parameters:
schema
- the name of the public schema on the peer to queryquery
- the query to pose on that public schemaqi
- QualityIndictor
of the query
QueryDescription
public QueryDescription(java.lang.String schemaName,
java.lang.String query)
- Use this constructor when no quality indicators are used
QueryDescription
public QueryDescription(java.lang.String schemaName,
ASG query,
QualityIndicator qi)
setSchemaName
public void setSchemaName(java.lang.String schemaName)
setQuery
public void setQuery(java.lang.String query)
throws ParseException
- Throws:
ParseException
setQueryASG
public void setQueryASG(ASG asgQuery)
getQuery
public java.lang.String getQuery()
getASGQuery
public ASG getASGQuery()
throws ParseException
- Throws:
ParseException
getSchemaName
public java.lang.String getSchemaName()
getQualityIndicator
public QualityIndicator getQualityIndicator()
getKey
public PersistentKey getKey()
- Specified by:
getKey
in interface PersistentObject
getPersistentAttributes
public java.util.Map getPersistentAttributes()
- Specified by:
getPersistentAttributes
in interface PersistentObject
deserialise
public static QueryDescription deserialise(java.util.Map pa)
throws java.lang.IllegalArgumentException
- This method guarantees that a PersistentObject can be deserialised properly from its own
set of persistent attributes. It is a reverse of
getPersistentAttributes()
- Parameters:
pa
- a HashMap
of persistent attributes (created by {@link #getPersistentAttributes())
- Throws:
java.lang.IllegalArgumentException