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

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult
        |
        +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue
              |
              +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.IdentifierValue

public class IdentifierValue
extends SingleValue

The IdentifierValue class represents the object identifier from the object store. Additionally each identifier possess the link to the object store.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com

Constructor Summary
IdentifierValue(ObjectID id, ObjectManager om)
          Creates a new identifier initialized with specified id.
 
Method Summary
 ObjectID getId()
          Returns the value of a identifier.
 java.lang.String getIdAsString()
          Returns the identifier value as a string value.
 ObjectManager getObjectManager()
          Returns the object manager of the object store.
 java.lang.String getTypeAsString()
          Returns a name of the result (QueryResult) type.
 ActivationRecord nested()
          Returns the value(s) of the object from the object store.
 QueryResult operatorASSIGN(QueryResult r)
          Method responsible for binary assign operation.
 BooleanValue operatorCOMPARE(QueryResult r)
          Method responsible for binary compare operation.
 void operatorCREATE(EnvironmentalStack ENVS)
          Method responsible for unary create operation.
 void operatorCREATELOCAL(EnvironmentalStack ENVS)
          Method responsible for unary create local operation.
 void operatorCREATEPERMANENT(EnvironmentalStack ENVS)
          Method responsible for unary craete permanent operation.
 void operatorDELETE(EnvironmentalStack ENVS)
          Method responsible for unary delete operation.
 QueryResult operatorDEREFERENCE()
          Method responsible for unary dereference operation.
 QueryResult operatorDIVIDEASSIGN(QueryResult r)
          Method responsible for binary divide assign operation.
 QueryResult operatorFULLDEREFERENCE()
          Method responsible for unary full dereference 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 operatorMINUSASSIGN(QueryResult r)
          Method responsible for binary minus assign operation.
 QueryResult operatorMIXEDDEREFERENCE()
          Method responsible for unary mixed dereference operation.
 QueryResult operatorMODULOASSIGN(QueryResult r)
          Method responsible for binary modulo assign operation.
 QueryResult operatorPLUSASSIGN(QueryResult r)
          Method responsible for binary plus assign operation.
 QueryResult operatorPREDECREMENT()
          Method responsible for unary predecrement operation.
 QueryResult operatorPREINCREMENT()
          Method responsible for unary preincrement operation.
 void operatorPRINT(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary print operation.
 void operatorRENAMETO(QueryResult r, EnvironmentalStack ENVS)
          Method responsible for binary rename to operation.
 QueryResult operatorSPECIALDEREFERENCE()
          Method responsible for unary special dereference operation.
 QueryResult operatorTIMESASSIGN(QueryResult r)
          Method responsible for binary times assign operation.
 void operatorUPDATETO(QueryResult r)
          Method responsible for binary update to operation.
 void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary xmlprint operation.
 void show(java.lang.String st, java.io.PrintWriter out)
          Method responsible for unary show operation.
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue
getNextResultAt, getNumberOfResults, operatorAS, operatorASCENDING, operatorBAG, operatorCOMMA, operatorCOUNT, operatorEXISTS, operatorGROUPAS, operatorINCLUSION, operatorSEQUENCE, operatorSTRUCT, operatorTOSINGLE, operatorUNION, operatorUNIQUE
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult
getLongestTypeAsSpacesString, getPreparedTypeAsString, operatorABSOLUTEVALUE, operatorAVERAGE, operatorCONDITION, operatorCONJUNCTION, operatorCOSINE, operatorCREATE, operatorCREATELOCAL, operatorCREATEPERMANENT, operatorDESCENDING, operatorDIFFERENCE, operatorDISJUNCTION, operatorDIVIDE, operatorEQUAL, operatorEXPONENT, operatorGREATER, operatorGREATEREQUAL, operatorINTERSECTION, operatorLOGARITHM, operatorLOWER, operatorLOWEREQUAL, operatorMAXIMUM, operatorMINIMUM, operatorMINUS, operatorMINUS, operatorMODULO, operatorNEGATION, operatorNOTEQUAL, operatorPLUS, operatorPLUS, operatorPOWER, operatorPRINT, operatorRANGE, operatorRANGE, operatorSIGNUM, operatorSINE, operatorSQUAREROOT, operatorSUM, operatorSYMMETRICDIFFERENCE, operatorTIMES, operatorTOBAG, operatorTODOUBLE, operatorTOINTEGER, operatorTOSEQUENCE, operatorTOSTRING, operatorTOSTRUCT, operatorXMLPRINT, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierValue

public IdentifierValue(ObjectID id,
                       ObjectManager om)
Creates a new identifier initialized with specified id.
Parameters:
id - the initializing identifier.
om - the object manager of the object store.
See Also:
ObjectID, ObjectManager
Method Detail

getTypeAsString

public java.lang.String getTypeAsString()
Returns a name of the result (QueryResult) type.
Overrides:
getTypeAsString in class QueryResult
Returns:
a binder type name.
See Also:
QueryResult

getId

public ObjectID getId()
Returns the value of a identifier.
Returns:
the value of a identifier.
See Also:
ObjectID

getIdAsString

public java.lang.String getIdAsString()
Returns the identifier value as a string value.
Returns:
the identifier value as a string value.

getObjectManager

public ObjectManager getObjectManager()
Returns the object manager of the object store.
Returns:
object manager of the object store.
See Also:
ObjectManager, SVRP

nested

public ActivationRecord nested()
Returns the value(s) of the object from the object store.
Overrides:
nested in class QueryResult
Returns:
the value(s) of the object from the object store.
See Also:
ActivationRecord

operatorDEREFERENCE

public QueryResult operatorDEREFERENCE()
                                throws TypeMismatchException
Method responsible for unary dereference operation.
Overrides:
operatorDEREFERENCE in class QueryResult
Returns:
the result of the unary dereference operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult, YObject

operatorFULLDEREFERENCE

public QueryResult operatorFULLDEREFERENCE()
                                    throws TypeMismatchException
Method responsible for unary full dereference operation.
Overrides:
operatorFULLDEREFERENCE in class QueryResult
Returns:
the result of the unary full dereference operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorSPECIALDEREFERENCE

public QueryResult operatorSPECIALDEREFERENCE()
                                       throws TypeMismatchException
Method responsible for unary special dereference operation.
Overrides:
operatorSPECIALDEREFERENCE in class QueryResult
Returns:
the result of the unary special dereference operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult, BinderValue, StructValue, YObject

operatorMIXEDDEREFERENCE

public QueryResult operatorMIXEDDEREFERENCE()
                                     throws TypeMismatchException
Method responsible for unary mixed dereference operation.
Overrides:
operatorMIXEDDEREFERENCE in class QueryResult
Returns:
the result of the unary mixed dereference operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult, YObject

operatorPREINCREMENT

public QueryResult operatorPREINCREMENT()
                                 throws TypeMismatchException
Method responsible for unary preincrement operation.
Overrides:
operatorPREINCREMENT in class QueryResult
Returns:
the result of the unary preincrement operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult, IntegerValue

operatorPREDECREMENT

public QueryResult operatorPREDECREMENT()
                                 throws TypeMismatchException
Method responsible for unary predecrement operation.
Overrides:
operatorPREDECREMENT in class QueryResult
Returns:
the result of the unary predecrement operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult, IntegerValue

operatorDELETE

public void operatorDELETE(EnvironmentalStack ENVS)
                    throws TypeMismatchException
Method responsible for unary delete operation.
Overrides:
operatorDELETE in class QueryResult
Returns:
the result of the unary delete operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack, BinderValue, YObject

operatorCREATEPERMANENT

public void operatorCREATEPERMANENT(EnvironmentalStack ENVS)
                             throws TypeMismatchException
Method responsible for unary craete permanent operation.
Overrides:
operatorCREATEPERMANENT in class QueryResult
Returns:
the result of the unary create permanent operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack, BinderValue, YObject

operatorCREATELOCAL

public void operatorCREATELOCAL(EnvironmentalStack ENVS)
                         throws TypeMismatchException
Method responsible for unary create local operation.
Overrides:
operatorCREATELOCAL in class QueryResult
Returns:
the result of the unary create local operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack, BinderValue, YObject

operatorCREATE

public void operatorCREATE(EnvironmentalStack ENVS)
                    throws TypeMismatchException
Method responsible for unary create operation.
Overrides:
operatorCREATE in class QueryResult
Returns:
the result of the unary create operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
EnvironmentalStack

show

public void show(java.lang.String st,
                 java.io.PrintWriter out)
Method responsible for unary show operation.
Overrides:
show in class QueryResult
Returns:
the result of the unary show operation.
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.
Overrides:
operatorPRINT in class QueryResult
Returns:
the result of the unary print operation.
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.
Overrides:
operatorXMLPRINT in class QueryResult
Returns:
the result of the unary xmlprint operation.
Throws:
TypeMismatchException - if type mismatch occurs.

operatorCOMPARE

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

operatorUPDATETO

public void operatorUPDATETO(QueryResult r)
                      throws TypeMismatchException
Method responsible for binary update to operation.
Overrides:
operatorUPDATETO in class QueryResult
Parameters:
r - the right operand of the binary update to operator.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorASSIGN

public QueryResult operatorASSIGN(QueryResult r)
                           throws TypeMismatchException
Method responsible for binary assign operation.
Overrides:
operatorASSIGN in class QueryResult
Parameters:
r - the right operand of the binary assign operator.
Returns:
the result of the binary assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorPLUSASSIGN

public QueryResult operatorPLUSASSIGN(QueryResult r)
                               throws TypeMismatchException
Method responsible for binary plus assign operation.
Overrides:
operatorPLUSASSIGN in class QueryResult
Parameters:
r - the right operand of the plus modulo assign operator.
Returns:
the result of the binary plus assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorMINUSASSIGN

public QueryResult operatorMINUSASSIGN(QueryResult r)
                                throws TypeMismatchException
Method responsible for binary minus assign operation.
Overrides:
operatorMINUSASSIGN in class QueryResult
Parameters:
r - the right operand of the binary minus assign operator.
Returns:
the result of the binary minus assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorTIMESASSIGN

public QueryResult operatorTIMESASSIGN(QueryResult r)
                                throws TypeMismatchException
Method responsible for binary times assign operation.
Overrides:
operatorTIMESASSIGN in class QueryResult
Parameters:
r - the right operand of the binary times assign operator.
Returns:
the result of the binary times assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorDIVIDEASSIGN

public QueryResult operatorDIVIDEASSIGN(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary divide assign operation.
Overrides:
operatorDIVIDEASSIGN in class QueryResult
Parameters:
r - the right operand of the binary divide assign operator.
Returns:
the result of the binary divide assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorMODULOASSIGN

public QueryResult operatorMODULOASSIGN(QueryResult r)
                                 throws TypeMismatchException
Method responsible for binary modulo assign operation.
Overrides:
operatorMODULOASSIGN in class QueryResult
Parameters:
r - the right operand of the binary modulo assign operator.
Returns:
the result of the binary modulo assign operation.
Throws:
TypeMismatchException - if type mismatch occurs.
See Also:
QueryResult

operatorRENAMETO

public void operatorRENAMETO(QueryResult r,
                             EnvironmentalStack ENVS)
                      throws TypeMismatchException
Method responsible for binary rename to operation.
Overrides:
operatorRENAMETO in class QueryResult
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:
QueryResult, EnvironmentalStack, StringValue

operatorINSERT

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

operatorINSERTINTO

public void operatorINSERTINTO(QueryResult r,
                               EnvironmentalStack ENVS)
                        throws TypeMismatchException
Method responsible for binary insert into operation.
Overrides:
operatorINSERTINTO in class QueryResult
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:
QueryResult, EnvironmentalStack