| |
|
| java.lang.Object org.jpox.store.expression.ScalarExpression org.jpox.store.expression.NumericExpression org.jpox.store.expression.IntegerLiteral
IntegerLiteral | public class IntegerLiteral extends NumericExpression implements Literal(Code) | | Representation of an Integer literal.
version: $Revision: 1.17 $ |
rawValue | Object rawValue(Code) | | Raw value that this literal represents.
|
IntegerLiteral | public IntegerLiteral(QueryExpression qs, JavaTypeMapping mapping, Number value)(Code) | | Creates a integer literal
Parameters: qs - the QueryExpression Parameters: mapping - the mapping Parameters: value - the integer value |
IntegerLiteral | public IntegerLiteral(QueryExpression qs, JavaTypeMapping mapping, Number value, boolean useParameter)(Code) | | Creates a integer literal. This constructor should only be used when the value
will not change if the Query is run several times.
Parameters: qs - the QueryExpression Parameters: mapping - the mapping Parameters: value - the integer value Parameters: useParameter - whether to use parameter or a literal in the expression when preparing the statement |
add | public ScalarExpression add(ScalarExpression expr)(Code) | | If both operands are instances of IntegerLiteral, the operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
div | public ScalarExpression div(ScalarExpression expr)(Code) | | If both operands are instances of IntegerLiteral, the operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
getRawValue | public Object getRawValue()(Code) | | Accessor for the "raw" value that this literal represents.
This value differs from the literal value since that is of the same type as this literal.
The raw value |
mod | public ScalarExpression mod(ScalarExpression expr)(Code) | | If both operands are instances of IntegerLiteral, the operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
mul | public ScalarExpression mul(ScalarExpression expr)(Code) | | If both operands are instances of IntegerLiteral, the operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
neg | public ScalarExpression neg()(Code) | | Operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
setRawValue | public void setRawValue(Object val)(Code) | | Method to save a "raw" value that this literal represents.
This value differs from the literal value since that is of the same type as this literal.
Parameters: val - The raw value |
sub | public ScalarExpression sub(ScalarExpression expr)(Code) | | If both operands are instances of IntegerLiteral, the operation results in BigInteger type. TODO fix this to follow JVM type conversions
|
|
|
|