com.onewebsql.query
Class Value

java.lang.Object
  extended by com.onewebsql.query.Value

public class Value
extends Object

Value of a terminal arithmetic expression. It stores an object which is the value of the expression and a JDBC type of the object (used when the object is null).


Constructor Summary
Value(Object value, int jdbcType)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 int getType()
          Returns the JDBC type (one ofTypes) of the value
 Object getValue()
          Return the actual value of the arithmetic expression.
 int hashCode()
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value(Object value,
             int jdbcType)
Constructor.

Parameters:
value - the value
jdbcType - JDBC type of the value
Method Detail

getValue

public Object getValue()
Return the actual value of the arithmetic expression.

Returns:
actual value

getType

public int getType()
Returns the JDBC type (one ofTypes) of the value

Returns:
JDBC type of the valeu

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Returns a string representation of the object. The representation consists of the value of the field "name".

Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2011-2013 e-point SA. All Rights Reserved.