Package com.caucho.db.sql

Examples of com.caucho.db.sql.Data


  /**
   * Sets the specified column.
   */
  public void setColumn(int index, Column column)
  {
    Data data = addData(index);

    data.setColumn(column);
  }
View Full Code Here


   * Returns the generated string key.
   */
  public String getString(int columnIndex)
    throws SQLException
  {
    Data data = _keys.get(columnIndex - 1);

    return data.getString();
  }
View Full Code Here

   * Sets the generated string key.
   */
  public void setString(int columnIndex, String value)
    throws SQLException
  {
    Data data = addData(columnIndex);

    data.setString(value);
  }
View Full Code Here

   * Returns the generated integer key.
   */
  public int getInt(int columnIndex)
    throws SQLException
  {
    Data data = _keys.get(columnIndex - 1);

    return data.getInt();
  }
View Full Code Here

   * Sets the generated int key.
   */
  public void setInt(int columnIndex, int value)
    throws SQLException
  {
    Data data = addData(columnIndex);

    data.setInt(value);
  }
View Full Code Here

   * Returns the generated long key.
   */
  public long getLong(int columnIndex)
    throws SQLException
  {
    Data data = _keys.get(columnIndex - 1);

    return data.getLong();
  }
View Full Code Here

   * Sets the generated long key.
   */
  public void setLong(int columnIndex, long value)
    throws SQLException
  {
    Data data = addData(columnIndex);

    data.setLong(value);
  }
View Full Code Here

   * Extends the capacity for the data.
   */
  private Data addData(int columnIndex)
  {
    for (int i = _keys.size(); i < columnIndex; i++)
      _keys.add(new Data());

    return _keys.get(columnIndex - 1);
  }
View Full Code Here

  /**
   * Sets the specified column.
   */
  public void setColumn(int index, Column column)
  {
    Data data = addData(index);

    data.setColumn(column);
  }
View Full Code Here

   * Returns the generated string key.
   */
  public String getString(int columnIndex)
    throws SQLException
  {
    Data data = _keys.get(columnIndex - 1);

    return data.getString();
  }
View Full Code Here

TOP

Related Classes of com.caucho.db.sql.Data

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.