pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes
Class QueryResult

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult
Direct Known Subclasses:
ComplexValue, SingleValue

public abstract class QueryResult
extends java.lang.Object

The QueryResult class represents the main class of available results.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com

Constructor Summary
QueryResult()
           
 
Method Summary
 java.lang.String getLongestTypeAsSpacesString()
          Returns the space string, which size is equal to the name of the longest type name.
abstract  QueryResult getNextResultAt(int i)
          Method used during evaluation of non algebraic operators.
abstract  int getNumberOfResults()
          Method used during evaluation of non algebraic operators.
 java.lang.String getPreparedTypeAsString()
          Returns the prepared type name for display.
abstract  java.lang.String getTypeAsString()
          Returns the query result type as a string value.
 ActivationRecord nested()
          Returns the new empty activation record.
 QueryResult operatorABSOLUTEVALUE()
          Method responsible for unary absolute value operation.
 QueryResult operatorAS(QueryResult r)
          Method responsible for binary as operation.
 QueryResult operatorASCENDING()
          Method responsible for unary ascending operation.
 QueryResult operatorASSIGN(QueryResult r)
          Method responsible for binary assign operation.
 QueryResult operatorAVERAGE()
          Method responsible for unary average operation.
 QueryResult operatorBAG()
          Method responsible for unary bag operation.
 QueryResult operatorCOMMA(QueryResult r)
          Method responsible for binary comma operation.
 BooleanValue operatorCOMPARE(QueryResult r)
          Method responsible for binary compare operation.
 QueryResult operatorCONDITION(QueryResult m, QueryResult r)
          Method responsible for ternary condition operation.
 BooleanValue operatorCONJUNCTION(QueryResult r)
          Method responsible for binary conjunction operation.
 QueryResult operatorCOSINE()
          Method responsible for unary cosine operation.
 IntegerValue operatorCOUNT()
          Method responsible for unary count operation.
 void operatorCREATE(EnvironmentalStack ENVS)
          Method responsible for unary create operation on environmental stack.
 QueryResult operatorCREATE(IdentifierValue iv)
          Method responsible for unary create operation.
 void operatorCREATELOCAL(EnvironmentalStack ENVS)
          Method responsible for unary create local operation on environmental stack.
 QueryResult operatorCREATELOCAL(IdentifierValue iv)
          Method responsible for unary create local operation.
 void operatorCREATEPERMANENT(EnvironmentalStack ENVS)
          Method responsible for unary create permanent operation on environmental stack.
 QueryResult operatorCREATEPERMANENT(IdentifierValue iv)
          Method responsible for unary create permanent operation.
 void operatorDELETE(EnvironmentalStack ENVS)
          Method responsible for unary create operation on environmental stack.
 QueryResult operatorDEREFERENCE()
          Method responsible for dereference operation.
 QueryResult operatorDESCENDING()
          Method responsible for unary descending operation.
 QueryResult operatorDIFFERENCE(QueryResult r)
          Method responsible for binary difference operation.
 BooleanValue operatorDISJUNCTION(QueryResult r)
          Method responsible for binary disjunction operation.
 QueryResult operatorDIVIDE(QueryResult r)
          Method responsible for binary divide operation.
 QueryResult operatorDIVIDEASSIGN(QueryResult r)
          Method responsible for binary divide assign operation.
 BooleanValue operatorEQUAL(QueryResult r)
          Method responsible for binary equal operation.
 BooleanValue operatorEXISTS()
          Method responsible for unary exists operation.
 QueryResult operatorEXPONENT()
          Method responsible for unary exponent operation.
 QueryResult operatorFULLDEREFERENCE()
          Method responsible for full dereference operation.
 BooleanValue operatorGREATER(QueryResult r)
          Method responsible for binary greater operation.
 BooleanValue operatorGREATEREQUAL(QueryResult r)
          Method responsible for binary greater equal operation.
 BinderValue operatorGROUPAS(QueryResult r)
          Method responsible for binary group as operation.
 BooleanValue operatorINCLUSION(QueryResult r)
          Method responsible for binary inclusion operation.
 QueryResult operatorINSERT(QueryResult r, EnvironmentalStack ENVS)
          Method responsible for binary insert operation.
 void operatorINSERTINTO(QueryResult r, EnvironmentalStack ENVS)
          Method responsible for binary insert into operation.
 QueryResult operatorINTERSECTION(QueryResult r)
          Method responsible for binary intersection operation.
 QueryResult operatorLOGARITHM()
          Method responsible for unary logarithm operation.
 BooleanValue operatorLOWER(QueryResult r)
          Method responsible for binary lower operation.
 BooleanValue operatorLOWEREQUAL(QueryResult r)
          Method responsible for binary lower equal operation.
 QueryResult operatorMAXIMUM()
          Method responsible for unary maximum operation.
 QueryResult operatorMINIMUM()
          Method responsible for unary minimum operation.
 QueryResult operatorMINUS()
          Method responsible for unary plus operation.
 QueryResult operatorMINUS(QueryResult r)
          Method responsible for binary minus operation.
 QueryResult operatorMINUSASSIGN(QueryResult r)
          Method responsible for binary minus assign operation.
 QueryResult operatorMIXEDDEREFERENCE()
          Method responsible for mixed dereference operation.
 QueryResult operatorMODULO(QueryResult r)
          Method responsible for binary modulo operation.
 QueryResult operatorMODULOASSIGN(QueryResult r)
          Method responsible for binary modulo assign operation.
 BooleanValue operatorNEGATION()
          Method responsible for unary negation operation.
 BooleanValue operatorNOTEQUAL(QueryResult r)
          Method responsible for binary not equal operation.
 QueryResult operatorPLUS()
          Method responsible for unary plus operation.
 QueryResult operatorPLUS(QueryResult r)
          Method responsible for binary plus operation.
 QueryResult operatorPLUSASSIGN(QueryResult r)
          Method responsible for binary plus assign operation.
 QueryResult operatorPOWER(QueryResult r)
          Method responsible for binary power operation.
 QueryResult operatorPREDECREMENT()
          Method responsible for unary predecrement operation.
 QueryResult operatorPREINCREMENT()
          Method responsible for unary preincrement operation.
 void operatorPRINT(java.io.PrintWriter out)
          Method responsible for unary print operation.
 void operatorPRINT(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary print operation.
 QueryResult operatorRANGE(QueryResult r)
          Method responsible for binary range operation.
 QueryResult operatorRANGE(QueryResult m, QueryResult r)
          Method responsible for ternary range operation.
 void operatorRENAMETO(QueryResult r, EnvironmentalStack ENVS)
          Method responsible for binary rename to operation.
 QueryResult operatorSEQUENCE()
          Method responsible for unary sequence operation.
 QueryResult operatorSIGNUM()
          Method responsible for unary signum operation.
 QueryResult operatorSINE()
          Method responsible for unary sine operation.
 QueryResult operatorSPECIALDEREFERENCE()
          Method responsible for special dereference operation.
 QueryResult operatorSQUAREROOT()
          Method responsible for unary square root operation.
 QueryResult operatorSTRUCT()
          Method responsible for unary struct operation.
 QueryResult operatorSUM()
          Method responsible for unary sum operation.
 QueryResult operatorSYMMETRICDIFFERENCE(QueryResult r)
          Method responsible for binary symmetric difference operation.
 QueryResult operatorTIMES(QueryResult r)
          Method responsible for binary times operation.
 QueryResult operatorTIMESASSIGN(QueryResult r)
          Method responsible for binary times assign operation.
 BagValue operatorTOBAG()
          Method responsible for unary tobag operation.
 DoubleValue operatorTODOUBLE()
          Method responsible for unary todouble operation.
 IntegerValue operatorTOINTEGER()
          Method responsible for unary tointeger operation.
 SequenceValue operatorTOSEQUENCE()
          Method responsible for unary tosequence operation.
 QueryResult operatorTOSINGLE()
          Method responsible for unary tosingle operation.
 StringValue operatorTOSTRING()
          Method responsible for unary tostring operation.
 StructValue operatorTOSTRUCT()
          Method responsible for unary tostruct operation.
 QueryResult operatorUNION(QueryResult r)
          Method responsible for binary union operation.
 QueryResult operatorUNIQUE()
          Method responsible for unary unique operation.
 void operatorUPDATETO(QueryResult r)
          Method responsible for binary update to operation.
 void operatorXMLPRINT(java.io.PrintWriter out)
          Method responsible for unary xmlprint operation.
 void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary xmlprint operation.
 void show(java.io.PrintWriter out)
          Method responsible for unary show operation.
abstract  void show(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary show operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult()
Method Detail

getTypeAsString

public abstract java.lang.String getTypeAsString()
Returns the query result type as a string value.
Returns:
the result type as string.

getLongestTypeAsSpacesString

public java.lang.String getLongestTypeAsSpacesString()
Returns the space string, which size is equal to the name of the longest type name.
Returns:
the name of the longest type, replaced by spaces.

getPreparedTypeAsString

public java.lang.String getPreparedTypeAsString()
Returns the prepared type name for display.
Returns:
the prepared type name.

nested

public ActivationRecord nested()
Returns the new empty activation record. This is a default action for all query results.
Returns:
the new empty activation record.
See Also:
ActivationRecord

getNumberOfResults

public abstract int getNumberOfResults()
Method used during evaluation of non algebraic operators. If the result is a complex value (collection) it should return the size of such collection. Otherwise it should return 1.
Returns:
the number of elements in the collection.

getNextResultAt

public abstract QueryResult getNextResultAt(int i)
Method used during evaluation of non algebraic operators. If the result is a complex value (collection) it should return the element i. Otherwise it should return this, despite of the value of i.
Parameters:
i - the i-th element to be returned.
Returns:
the i-th element in the collection.
See Also:
QueryResult

operatorDEREFERENCE

public QueryResult operatorDEREFERENCE()
                                throws TypeMismatchException
Method responsible for dereference operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorFULLDEREFERENCE

public QueryResult operatorFULLDEREFERENCE()
                                    throws TypeMismatchException
Method responsible for full dereference operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSPECIALDEREFERENCE

public QueryResult operatorSPECIALDEREFERENCE()
                                       throws TypeMismatchException
Method responsible for special dereference operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMIXEDDEREFERENCE

public QueryResult operatorMIXEDDEREFERENCE()
                                     throws TypeMismatchException
Method responsible for mixed dereference operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPLUS

public QueryResult operatorPLUS()
                         throws TypeMismatchException
Method responsible for unary plus operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMINUS

public QueryResult operatorMINUS()
                          throws TypeMismatchException
Method responsible for unary plus operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorNEGATION

public BooleanValue operatorNEGATION()
                              throws TypeMismatchException
Method responsible for unary negation operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorEXISTS

public BooleanValue operatorEXISTS()
                            throws TypeMismatchException
Method responsible for unary exists operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSQUAREROOT

public QueryResult operatorSQUAREROOT()
                               throws TypeMismatchException
Method responsible for unary square root operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorABSOLUTEVALUE

public QueryResult operatorABSOLUTEVALUE()
                                  throws TypeMismatchException
Method responsible for unary absolute value operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSINE

public QueryResult operatorSINE()
                         throws TypeMismatchException
Method responsible for unary sine operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorCOSINE

public QueryResult operatorCOSINE()
                           throws TypeMismatchException
Method responsible for unary cosine operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorEXPONENT

public QueryResult operatorEXPONENT()
                             throws TypeMismatchException
Method responsible for unary exponent operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorLOGARITHM

public QueryResult operatorLOGARITHM()
                              throws TypeMismatchException
Method responsible for unary logarithm operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorCOUNT

public IntegerValue operatorCOUNT()
                           throws TypeMismatchException
Method responsible for unary count operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSUM

public QueryResult operatorSUM()
                        throws TypeMismatchException
Method responsible for unary sum operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorAVERAGE

public QueryResult operatorAVERAGE()
                            throws TypeMismatchException
Method responsible for unary average operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMINIMUM

public QueryResult operatorMINIMUM()
                            throws TypeMismatchException
Method responsible for unary minimum operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMAXIMUM

public QueryResult operatorMAXIMUM()
                            throws TypeMismatchException
Method responsible for unary maximum operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSIGNUM

public QueryResult operatorSIGNUM()
                           throws TypeMismatchException
Method responsible for unary signum operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSTRUCT

public QueryResult operatorSTRUCT()
                           throws TypeMismatchException
Method responsible for unary struct operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorBAG

public QueryResult operatorBAG()
                        throws TypeMismatchException
Method responsible for unary bag operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSEQUENCE

public QueryResult operatorSEQUENCE()
                             throws TypeMismatchException
Method responsible for unary sequence operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorUNIQUE

public QueryResult operatorUNIQUE()
                           throws TypeMismatchException
Method responsible for unary unique operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOSTRUCT

public StructValue operatorTOSTRUCT()
                             throws TypeMismatchException
Method responsible for unary tostruct operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOBAG

public BagValue operatorTOBAG()
                       throws TypeMismatchException
Method responsible for unary tobag operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOSEQUENCE

public SequenceValue operatorTOSEQUENCE()
                                 throws TypeMismatchException
Method responsible for unary tosequence operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOSINGLE

public QueryResult operatorTOSINGLE()
                             throws TypeMismatchException
Method responsible for unary tosingle operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOSTRING

public StringValue operatorTOSTRING()
                             throws TypeMismatchException
Method responsible for unary tostring operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTOINTEGER

public IntegerValue operatorTOINTEGER()
                               throws TypeMismatchException
Method responsible for unary tointeger operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTODOUBLE

public DoubleValue operatorTODOUBLE()
                             throws TypeMismatchException
Method responsible for unary todouble operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorASCENDING

public QueryResult operatorASCENDING()
                              throws TypeMismatchException
Method responsible for unary ascending operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorDESCENDING

public QueryResult operatorDESCENDING()
                               throws TypeMismatchException
Method responsible for unary descending operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPREINCREMENT

public QueryResult operatorPREINCREMENT()
                                 throws TypeMismatchException
Method responsible for unary preincrement operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPREDECREMENT

public QueryResult operatorPREDECREMENT()
                                 throws TypeMismatchException
Method responsible for unary predecrement operation.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorCREATELOCAL

public QueryResult operatorCREATELOCAL(IdentifierValue iv)
                                throws TypeMismatchException
Method responsible for unary create local operation.
Parameters:
id - Identifier of the parent object in object store.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
IdentifierValue

operatorCREATELOCAL

public void operatorCREATELOCAL(EnvironmentalStack ENVS)
                         throws TypeMismatchException
Method responsible for unary create local operation on environmental stack.
Parameters:
ENVS - environmental stack which has to be updated.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorCREATEPERMANENT

public QueryResult operatorCREATEPERMANENT(IdentifierValue iv)
                                    throws TypeMismatchException
Method responsible for unary create permanent operation.
Parameters:
id - Identifier of the parent object in object store.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
IdentifierValue

operatorCREATEPERMANENT

public void operatorCREATEPERMANENT(EnvironmentalStack ENVS)
                             throws TypeMismatchException
Method responsible for unary create permanent operation on environmental stack.
Parameters:
ENVS - environmental stack which has to be updated.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorCREATE

public QueryResult operatorCREATE(IdentifierValue iv)
                           throws TypeMismatchException
Method responsible for unary create operation.
Parameters:
id - Identifier of the parent object in object store.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
IdentifierValue

operatorCREATE

public void operatorCREATE(EnvironmentalStack ENVS)
                    throws TypeMismatchException
Method responsible for unary create operation on environmental stack.
Parameters:
ENVS - environmental stack which has to be updated.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorDELETE

public void operatorDELETE(EnvironmentalStack ENVS)
                    throws TypeMismatchException
Method responsible for unary create operation on environmental stack. By default, it always throws TypeMismatchException.
Parameters:
ENVS - environmental stack which has to be updated.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorPRINT

public void operatorPRINT(java.io.PrintWriter out)
                   throws TypeMismatchException
Method responsible for unary print operation.
Parameters:
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPRINT

public void operatorPRINT(java.lang.String st,
                          java.io.PrintWriter out)
                   throws TypeMismatchException
Method responsible for unary print operation.
Parameters:
st - the auxiliary string, used as a tabulator.
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorXMLPRINT

public void operatorXMLPRINT(java.io.PrintWriter out)
                      throws TypeMismatchException
Method responsible for unary xmlprint operation.
Parameters:
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorXMLPRINT

public void operatorXMLPRINT(java.lang.String st,
                             java.io.PrintWriter out)
                      throws TypeMismatchException
Method responsible for unary xmlprint operation.
Parameters:
st - the auxiliary string, used as a tabulator.
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

show

public abstract void show(java.lang.String st,
                          java.io.PrintWriter out)
Method responsible for unary show operation.
Parameters:
st - the auxiliary string, used as a tabulator.
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

show

public void show(java.io.PrintWriter out)
Method responsible for unary show operation.
Parameters:
out - the object on which the result will be displayed.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorAS

public QueryResult operatorAS(QueryResult r)
                       throws TypeMismatchException
Method responsible for binary as operation.
Parameters:
r - the right operand of the binary as operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorGROUPAS

public BinderValue operatorGROUPAS(QueryResult r)
                            throws TypeMismatchException
Method responsible for binary group as operation.
Parameters:
r - the right operand of the binary group as operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BinderValue

operatorPLUS

public QueryResult operatorPLUS(QueryResult r)
                         throws TypeMismatchException
Method responsible for binary plus operation.
Parameters:
r - the right operand of the binary plus operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMINUS

public QueryResult operatorMINUS(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary minus operation.
Parameters:
r - the right operand of the binary minus operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTIMES

public QueryResult operatorTIMES(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary times operation.
Parameters:
r - the right operand of the binary times operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorDIVIDE

public QueryResult operatorDIVIDE(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary divide operation.
Parameters:
r - the right operand of the binary divide operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMODULO

public QueryResult operatorMODULO(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary modulo operation.
Parameters:
r - the right operand of the binary modulo operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPOWER

public QueryResult operatorPOWER(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary power operation.
Parameters:
r - the right operand of the binary power operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorEQUAL

public BooleanValue operatorEQUAL(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary equal operation.
Parameters:
r - the right operand of the binary equal operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorNOTEQUAL

public BooleanValue operatorNOTEQUAL(QueryResult r)
                              throws TypeMismatchException
Method responsible for binary not equal operation.
Parameters:
r - the right operand of the binary not equal operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorGREATER

public BooleanValue operatorGREATER(QueryResult r)
                             throws TypeMismatchException
Method responsible for binary greater operation.
Parameters:
r - the right operand of the binary greater operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorLOWER

public BooleanValue operatorLOWER(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary lower operation.
Parameters:
r - the right operand of the binary lower operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorGREATEREQUAL

public BooleanValue operatorGREATEREQUAL(QueryResult r)
                                  throws TypeMismatchException
Method responsible for binary greater equal operation.
Parameters:
r - the right operand of the binary greater equal operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorLOWEREQUAL

public BooleanValue operatorLOWEREQUAL(QueryResult r)
                                throws TypeMismatchException
Method responsible for binary lower equal operation.
Parameters:
r - the right operand of the binary lower equal operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorCONJUNCTION

public BooleanValue operatorCONJUNCTION(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary conjunction operation.
Parameters:
r - the right operand of the binary conjunction operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorDISJUNCTION

public BooleanValue operatorDISJUNCTION(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary disjunction operation.
Parameters:
r - the right operand of the binary disjunction operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorCOMMA

public QueryResult operatorCOMMA(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary comma operation.
Parameters:
r - the right operand of the binary comma operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorINCLUSION

public BooleanValue operatorINCLUSION(QueryResult r)
                               throws TypeMismatchException
Method responsible for binary inclusion operation.
Parameters:
r - the right operand of the binary inclusion operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorUNION

public QueryResult operatorUNION(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary union operation.
Parameters:
r - the right operand of the binary union operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorINTERSECTION

public QueryResult operatorINTERSECTION(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary intersection operation.
Parameters:
r - the right operand of the binary intersection operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorDIFFERENCE

public QueryResult operatorDIFFERENCE(QueryResult r)
                               throws TypeMismatchException
Method responsible for binary difference operation.
Parameters:
r - the right operand of the binary difference operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorSYMMETRICDIFFERENCE

public QueryResult operatorSYMMETRICDIFFERENCE(QueryResult r)
                                        throws TypeMismatchException
Method responsible for binary symmetric difference operation.
Parameters:
r - the right operand of the binary symmetric difference operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorASSIGN

public QueryResult operatorASSIGN(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary assign operation.
Parameters:
r - the right operand of the binary assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorPLUSASSIGN

public QueryResult operatorPLUSASSIGN(QueryResult r)
                               throws TypeMismatchException
Method responsible for binary plus assign operation.
Parameters:
r - the right operand of the binary plus assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMINUSASSIGN

public QueryResult operatorMINUSASSIGN(QueryResult r)
                                throws TypeMismatchException
Method responsible for binary minus assign operation.
Parameters:
r - the right operand of the binary minus assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorTIMESASSIGN

public QueryResult operatorTIMESASSIGN(QueryResult r)
                                throws TypeMismatchException
Method responsible for binary times assign operation.
Parameters:
r - the right operand of the binary times assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorDIVIDEASSIGN

public QueryResult operatorDIVIDEASSIGN(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary divide assign operation.
Parameters:
r - the right operand of the binary divide assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorMODULOASSIGN

public QueryResult operatorMODULOASSIGN(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary modulo assign operation.
Parameters:
r - the right operand of the binary modulo assign operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorRANGE

public QueryResult operatorRANGE(QueryResult r)
                          throws TypeMismatchException
Method responsible for binary range operation.
Parameters:
r - the right operand of the binary range operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorCOMPARE

public BooleanValue operatorCOMPARE(QueryResult r)
                             throws TypeMismatchException
Method responsible for binary compare operation.
Parameters:
r - the right operand of the binary compare operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
BooleanValue

operatorRENAMETO

public void operatorRENAMETO(QueryResult r,
                             EnvironmentalStack ENVS)
                      throws TypeMismatchException
Method responsible for binary rename to operation. By default, it always throws TypeMismatchException.
Parameters:
r - the right operand of the binary rename to operator.
ENVS - environmental stack which has to be updated.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorINSERTINTO

public void operatorINSERTINTO(QueryResult r,
                               EnvironmentalStack ENVS)
                        throws TypeMismatchException
Method responsible for binary insert into operation. By default, it always throws TypeMismatchException.
Parameters:
r - the right operand of the binary insert into operator.
ENVS - environmental stack which has to be updated.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorUPDATETO

public void operatorUPDATETO(QueryResult r)
                      throws TypeMismatchException
Method responsible for binary update to operation. By default, it always throws TypeMismatchException.
Parameters:
r - the right operand of the binary update to operator.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorINSERT

public QueryResult operatorINSERT(QueryResult r,
                                  EnvironmentalStack ENVS)
                           throws TypeMismatchException
Method responsible for binary insert operation.
Parameters:
r - the right operand of the binary insert operator.
ENVS - environmental stack which has to be updated.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

operatorCONDITION

public QueryResult operatorCONDITION(QueryResult m,
                                     QueryResult r)
                              throws TypeMismatchException
Method responsible for ternary condition operation.
Parameters:
m - the middle operand of the ternary condition operator.
r - the right operand of the ternary condition operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorRANGE

public QueryResult operatorRANGE(QueryResult m,
                                 QueryResult r)
                          throws TypeMismatchException
Method responsible for ternary range operation.
Parameters:
m - the middle operand of the ternary range operator.
r - the right operand of the ternary range operator.
Returns:
by default, it always throws TypeMismatchException.
Throws:
TypeMismatchException - if type mismatch occurs.