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.
 java.io.InputStream getBinaryStream()
           
 int getBoolean()
          Returns the value as a boolean
 byte[] getBytes()
           
 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.
 Column.ColumnType getType()
           
 int hashCode()
          Returns a hash code
 boolean isBinaryStream()
           
 boolean isNull()
          Returns true for a null value.
 void setBinaryStream(java.io.InputStream is, int length)
          Sets the value as a stream.
 void setBoolean(boolean value)
          Sets the value as a boolean.
 void setBytes(byte[] bytes)
           
 void setColumn(Column column)
           
 void setDate(long value)
           
 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()

getType

public Column.ColumnType getType()

isNull

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


setString

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


setDate

public void setDate(long value)

isBinaryStream

public boolean isBinaryStream()

setBinaryStream

public void setBinaryStream(java.io.InputStream is,
                            int length)
Sets the value as a stream.


getBinaryStream

public java.io.InputStream getBinaryStream()

setBytes

public void setBytes(byte[] bytes)

getBytes

public byte[] getBytes()

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