org.jafer.query
Interface QueryConverter

All Known Implementing Classes:
CQLQuery, JaferQuery, RPNQuery

public interface QueryConverter

This interface defines the conversion methods that any Query type must implement


Method Summary
 java.lang.String getXML()
          This method returns a string representation of the XML for the current query
 CQLQuery toCQLQuery()
          This method converts the current Query representation into a CQLQuery object
 JaferQuery toJaferQuery()
          This method converts the current Query representation into a JaferQuery object
 RPNQuery toRPNQuery()
          This method converts the current Query representation into a RPNQuery object
 

Method Detail

toCQLQuery

CQLQuery toCQLQuery()
                    throws QueryException
This method converts the current Query representation into a CQLQuery object

Returns:
A new CQLQuery
Throws:
QueryException

toJaferQuery

JaferQuery toJaferQuery()
                        throws QueryException
This method converts the current Query representation into a JaferQuery object

Returns:
A new JaferQuery
Throws:
QueryException

toRPNQuery

RPNQuery toRPNQuery()
                    throws QueryException
This method converts the current Query representation into a RPNQuery object

Returns:
A new RPNQuery
Throws:
QueryException

getXML

java.lang.String getXML()
                        throws QueryException
This method returns a string representation of the XML for the current query

Returns:
The query in XML
Throws:
QueryException