com.caucho.amber.query
Class QueryArgs

java.lang.Object
  extended by com.caucho.amber.query.QueryArgs

public class QueryArgs
extends java.lang.Object

Represents the arguments to a query.


Constructor Summary
QueryArgs(int length)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if equals.
 int hashCode()
          Returns a hash code.
 void setByte(int index, byte v)
          Sets the argument with a byte
 void setDate(int index, java.sql.Date v)
          Sets the argument with a date
 void setDouble(int index, double v)
          Sets the argument with a double
 void setInt(int index, int v)
          Sets the argument with an int
 void setLong(int index, long v)
          Sets the argument with a string
 void setNull(int index, int v)
          Sets the argument with a null
 void setShort(int index, short v)
          Sets the argument with a short
 void setString(int index, java.lang.String v)
          Sets the argument with a string
 void setTimestamp(int index, java.sql.Timestamp v)
          Sets the argument with a timestamp
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryArgs

public QueryArgs(int length)
Method Detail

setString

public void setString(int index,
                      java.lang.String v)
Sets the argument with a string


setByte

public void setByte(int index,
                    byte v)
Sets the argument with a byte


setShort

public void setShort(int index,
                     short v)
Sets the argument with a short


setInt

public void setInt(int index,
                   int v)
Sets the argument with an int


setLong

public void setLong(int index,
                    long v)
Sets the argument with a string


setDouble

public void setDouble(int index,
                      double v)
Sets the argument with a double


setTimestamp

public void setTimestamp(int index,
                         java.sql.Timestamp v)
Sets the argument with a timestamp


setDate

public void setDate(int index,
                    java.sql.Date v)
Sets the argument with a date


setNull

public void setNull(int index,
                    int v)
Sets the argument with a null


hashCode

public int hashCode()
Returns a hash code.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if equals.

Overrides:
equals in class java.lang.Object

toString

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