com.caucho.db.sql
Class Data

java.lang.Object
  extended by com.caucho.db.sql.Data

public class Data
extends java.lang.Object


Constructor Summary
Data()
           
 
Method Summary
 void clear()
           
 void copyTo(Data dst)
          Returns the value as a double.
 boolean equals(java.lang.Object o)
          Returns the equality test.
 int getBoolean()
          Returns the value as a boolean
 Column getColumn()
           
 long getDate()
          Returns the value as a date.
 double getDouble()
          Returns the value as a double.
 int getInt()
          Returns the value as an integer.
 long getLong()
          Returns the value as a long.
 java.lang.String getString()
          Returns the value as a string.
 int hashCode()
          Returns a hash code
 boolean isNull()
          Returns treu for a null value.
 void setBoolean(boolean value)
          Sets the value as a boolean.
 void setColumn(Column column)
           
 void setDouble(double value)
          Sets the value as a double.
 void setInt(int value)
          Sets the value as an integer.
 void setLong(long value)
          Sets the value as a long.
 void setString(java.lang.String value)
          Sets the value as a string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Data

public Data()
Method Detail

clear

public void clear()

setColumn

public void setColumn(Column column)

getColumn

public Column getColumn()

isNull

public boolean isNull()
Returns treu for a null value.


setString

public void setString(java.lang.String value)
Sets the value as a string.


getString

public java.lang.String getString()
Returns the value as a string.


setBoolean

public void setBoolean(boolean value)
Sets the value as a boolean.


getBoolean

public int getBoolean()
Returns the value as a boolean


setInt

public void setInt(int value)
Sets the value as an integer.


getInt

public int getInt()
Returns the value as an integer.


setLong

public void setLong(long value)
Sets the value as a long.


getLong

public long getLong()
Returns the value as a long.


getDate

public long getDate()
Returns the value as a date.


setDouble

public void setDouble(double value)
Sets the value as a double.


getDouble

public double getDouble()
Returns the value as a double.


copyTo

public void copyTo(Data dst)
Returns the value as a double.


hashCode

public int hashCode()
Returns a hash code

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns the equality test.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object