|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.AtomicValue | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.IntegerValue
The IntegerValue
class represents the integer numbers.
Constructor Summary | |
IntegerValue(double value)
Creates a new integer value initialized with specified value . |
|
IntegerValue(int value)
Creates a new integer value initialized with specified value . |
|
IntegerValue(java.lang.Integer value)
Creates a new integer value initialized with specified value . |
Method Summary | |
double |
doubleValue()
Returns the integer value as a double value. |
java.lang.String |
getTypeAsString()
Returns a name of the result ( QueryResult ) type. |
java.lang.Integer |
getValue()
Returns the value of a integer value. |
java.lang.String |
getValueAsString()
Returns the integer value as a string value. |
int |
intValue()
Returns the integer value as a integer value. |
QueryResult |
operatorABSOLUTEVALUE()
Method responsible for unary absolute value operation. |
QueryResult |
operatorAVERAGE()
Method responsible for unary average operation. |
BooleanValue |
operatorCOMPARE(QueryResult r)
Method responsible for binary compare operation. |
QueryResult |
operatorCOSINE()
Method responsible for unary cosine operation. |
QueryResult |
operatorDESCENDING()
Method responsible for unary descending operation. |
QueryResult |
operatorDIVIDE(QueryResult r)
Method responsible for binary divide operation. |
BooleanValue |
operatorEQUAL(QueryResult r)
Method responsible for binary equal operation. |
QueryResult |
operatorEXPONENT()
Method responsible for unary exponent operation. |
BooleanValue |
operatorGREATER(QueryResult r)
Method responsible for binary greater operation. |
BooleanValue |
operatorGREATEREQUAL(QueryResult r)
Method responsible for binary greater equal 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 minus operation. |
QueryResult |
operatorMINUS(QueryResult r)
Method responsible for binary minus operation. |
QueryResult |
operatorMODULO(QueryResult r)
Method responsible for binary modulo 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 |
operatorPOWER(QueryResult r)
Method responsible for binary power operation. |
QueryResult |
operatorSIGNUM()
Method responsible for unary signum operation. |
QueryResult |
operatorSINE()
Method responsible for unary sine operation. |
QueryResult |
operatorSQUAREROOT()
Method responsible for unary square root operation. |
QueryResult |
operatorSUM()
Method responsible for unary sum operation. |
QueryResult |
operatorTIMES(QueryResult r)
Method responsible for binary times operation. |
DoubleValue |
operatorTODOUBLE()
Method responsible for unary todouble operation. |
IntegerValue |
operatorTOINTEGER()
Method responsible for unary tointeger operation. |
StringValue |
operatorTOSTRING()
Method responsible for unary tostring operation. |
java.lang.String |
stringValue()
Returns the integer value as a string value. |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.AtomicValue |
operatorDEREFERENCE, operatorFULLDEREFERENCE, operatorMIXEDDEREFERENCE, operatorPRINT, operatorSPECIALDEREFERENCE, operatorXMLPRINT, show |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntegerValue(java.lang.Integer value)
value
.value
- the initializing value.public IntegerValue(int value)
value
.value
- the initializing value.public IntegerValue(double value)
value
.value
- the initializing value.Method Detail |
public java.lang.String getTypeAsString()
QueryResult
) type.getTypeAsString
in class QueryResult
QueryResult
public java.lang.String getValueAsString()
getValueAsString
in class AtomicValue
public java.lang.Integer getValue()
public int intValue()
public double doubleValue()
public java.lang.String stringValue()
public QueryResult operatorPLUS() throws TypeMismatchException
operatorPLUS
in class QueryResult
r
- the right operand of the unary plus operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorMINUS() throws TypeMismatchException
operatorMINUS
in class QueryResult
r
- the right operand of the unary minus operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorSQUAREROOT() throws TypeMismatchException
operatorSQUAREROOT
in class QueryResult
r
- the right operand of the unary square root operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorABSOLUTEVALUE() throws TypeMismatchException
operatorABSOLUTEVALUE
in class QueryResult
r
- the right operand of the unary absolute value operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorSIGNUM() throws TypeMismatchException
operatorSIGNUM
in class QueryResult
r
- the right operand of the unary signum operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorSINE() throws TypeMismatchException
operatorSINE
in class QueryResult
r
- the right operand of the unary sine operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorCOSINE() throws TypeMismatchException
operatorCOSINE
in class QueryResult
r
- the right operand of the unary cosine operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorEXPONENT() throws TypeMismatchException
operatorEXPONENT
in class QueryResult
r
- the right operand of the unary exponent operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorLOGARITHM() throws TypeMismatchException
operatorLOGARITHM
in class QueryResult
r
- the right operand of the unary logarithm operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorSUM() throws TypeMismatchException
operatorSUM
in class QueryResult
r
- the right operand of the unary sum operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorAVERAGE() throws TypeMismatchException
operatorAVERAGE
in class QueryResult
r
- the right operand of the unary average operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorMINIMUM() throws TypeMismatchException
operatorMINIMUM
in class QueryResult
r
- the right operand of the unary minimum operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorMAXIMUM() throws TypeMismatchException
operatorMAXIMUM
in class QueryResult
r
- the right operand of the unary maximum operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public QueryResult operatorDESCENDING() throws TypeMismatchException
operatorDESCENDING
in class QueryResult
r
- the right operand of the unary descending operator.TypeMismatchException
- if type mismatch occurs.QueryResult
public StringValue operatorTOSTRING() throws TypeMismatchException
operatorTOSTRING
in class QueryResult
r
- the right operand of the unary tostring operator.TypeMismatchException
- if type mismatch occurs.StringValue
public IntegerValue operatorTOINTEGER() throws TypeMismatchException
operatorTOINTEGER
in class QueryResult
r
- the right operand of the unary tointeger operator.TypeMismatchException
- if type mismatch occurs.public DoubleValue operatorTODOUBLE() throws TypeMismatchException
operatorTODOUBLE
in class QueryResult
r
- the right operand of the unary todouble operator.TypeMismatchException
- if type mismatch occurs.DoubleValue
public QueryResult operatorPLUS(QueryResult r) throws TypeMismatchException
operatorPLUS
in class QueryResult
r
- the right operand of the binary plus operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
,
StringValue
public QueryResult operatorMINUS(QueryResult r) throws TypeMismatchException
operatorMINUS
in class QueryResult
r
- the right operand of the binary minus operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorTIMES(QueryResult r) throws TypeMismatchException
operatorTIMES
in class QueryResult
r
- the right operand of the binary times operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorDIVIDE(QueryResult r) throws TypeMismatchException
operatorDIVIDE
in class QueryResult
r
- the right operand of the binary divide operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public BooleanValue operatorEQUAL(QueryResult r) throws TypeMismatchException
operatorEQUAL
in class QueryResult
r
- the right operand of the binary equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public BooleanValue operatorNOTEQUAL(QueryResult r) throws TypeMismatchException
operatorNOTEQUAL
in class QueryResult
r
- the right operand of the binary not equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public BooleanValue operatorGREATER(QueryResult r) throws TypeMismatchException
operatorGREATER
in class QueryResult
r
- the right operand of the binary greater operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public BooleanValue operatorLOWER(QueryResult r) throws TypeMismatchException
operatorLOWER
in class QueryResult
r
- the right operand of the binary lower operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public BooleanValue operatorLOWEREQUAL(QueryResult r) throws TypeMismatchException
operatorLOWEREQUAL
in class QueryResult
r
- the right operand of the binary lower equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public BooleanValue operatorGREATEREQUAL(QueryResult r) throws TypeMismatchException
operatorGREATEREQUAL
in class QueryResult
r
- the right operand of the binary greater equal operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
,
DoubleValue
public QueryResult operatorMODULO(QueryResult r) throws TypeMismatchException
operatorMODULO
in class QueryResult
r
- the right operand of the binary modulo operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public QueryResult operatorPOWER(QueryResult r) throws TypeMismatchException
operatorPOWER
in class QueryResult
r
- the right operand of the binary power operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
DoubleValue
public BooleanValue operatorCOMPARE(QueryResult r) throws TypeMismatchException
operatorCOMPARE
in class QueryResult
r
- the right operand of the binary compare operator.TypeMismatchException
- if type mismatch occurs.QueryResult
,
BooleanValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |