com.allaire.cfx
Interface Query

All Superinterfaces:
java.sql.ResultSet
All Known Subinterfaces:
Query, QueryTable
All Known Implementing Classes:
QueryWrap

public interface Query
extends java.sql.ResultSet

Alternative Implementation of Jeremy Allaire's Query Interface


Field Summary
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Method Summary
 int addRow()
           
 int getColumnIndex(java.lang.String coulmnName)
          returns index of a columnName
 java.lang.String[] getColumns()
           
 java.lang.String getData(int row, int col)
          returns one field of a Query as String
 java.lang.String getName()
           
 int getRowCount()
           
 void setData(int row, int col, java.lang.String value)
          sets value at a defined position in Query
 
Methods inherited from interface java.sql.ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getMetaData, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getShort, getShort, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 

Method Detail

addRow

public int addRow()
Returns:
adds a row to resultset

getColumnIndex

public int getColumnIndex(java.lang.String coulmnName)
returns index of a columnName

Parameters:
coulmnName - column name to get index for
Returns:
index of a columnName

getColumns

public java.lang.String[] getColumns()
Returns:
All column Names of resultset as string

getData

public java.lang.String getData(int row,
                                int col)
                         throws java.lang.IndexOutOfBoundsException
returns one field of a Query as String

Parameters:
row -
col -
Returns:
data from query object
Throws:
java.lang.IndexOutOfBoundsException

getName

public java.lang.String getName()
Returns:
returns name of the query

getRowCount

public int getRowCount()
Returns:
returns row count

setData

public void setData(int row,
                    int col,
                    java.lang.String value)
             throws java.lang.IndexOutOfBoundsException
sets value at a defined position in Query

Parameters:
row -
col -
value -
Throws:
java.lang.IndexOutOfBoundsException