Class QueryResult

java.lang.Object
blazing.sql.QueryResult

public class QueryResult extends Object
  • Constructor Details

    • QueryResult

      public QueryResult(Connection conn, String stmt)
      Used to create a SQL statement from a connection and String.
      Parameters:
      conn -
      stmt -
  • Method Details

    • setInt

      public QueryResult setInt(int index, int value)
      Sets the int value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setFloat

      public QueryResult setFloat(int index, float value)
      Sets the float value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setDouble

      public QueryResult setDouble(int index, double value)
      Sets the double value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setString

      public QueryResult setString(int index, String value)
      Sets the double value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setShort

      public QueryResult setShort(int index, short value)
      Sets the short value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setLong

      public QueryResult setLong(int index, long value)
      Sets the long value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setByte

      public QueryResult setByte(int index, byte value)
      Sets the byte value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • setBytes

      public QueryResult setBytes(int index, byte[] value)
      Sets the byte array value at column specified by index.
      Parameters:
      index -
      value -
      Returns:
    • toResultSet

      public ResultSet toResultSet()
      Executes the SQL statement into a result set
      Returns:
    • execute

      public boolean execute()
      Executes the SQL statement
      Returns:
    • mapExec

      public <T> List<T> mapExec(Class<T> cls)
      Performs Generic Object Relational Mapping of SQL columns to actual instances of a class.
      Type Parameters:
      T -
      Parameters:
      cls -
      Returns: