org.drizzle.jdbc.internal.common.queryresults
Interface SelectQueryResult

All Superinterfaces:
QueryResult
All Known Implementing Classes:
DrizzleInsertIdQueryResult, DrizzleQueryResult

public interface SelectQueryResult
extends QueryResult

User: marcuse Date: Mar 9, 2009 Time: 8:42:45 PM


Method Summary
 int getColumnId(java.lang.String columnLabel)
          get the id of the column named columnLabel
 int getRowPointer()
          gets the current row number
 ValueObject getValueObject(int index)
          gets the value object at position index, starts at 0
 ValueObject getValueObject(java.lang.String columnName)
          gets the value object in column named columnName
 void moveRowPointerTo(int i)
          moves the row pointer to position i
 boolean next()
          move pointer forward
 
Methods inherited from interface org.drizzle.jdbc.internal.common.queryresults.QueryResult
close, getColumnInformation, getMessage, getResultSetType, getRows, getWarnings
 

Method Detail

getValueObject

ValueObject getValueObject(int index)
                           throws NoSuchColumnException
gets the value object at position index, starts at 0

Parameters:
index - the position, starts at 0
Returns:
the value object at position index
Throws:
NoSuchColumnException - if the column does not exist

getValueObject

ValueObject getValueObject(java.lang.String columnName)
                           throws NoSuchColumnException
gets the value object in column named columnName

Parameters:
columnName - the name of the column
Returns:
a value object
Throws:
NoSuchColumnException - if the column does not exist

getColumnId

int getColumnId(java.lang.String columnLabel)
                throws NoSuchColumnException
get the id of the column named columnLabel

Parameters:
columnLabel - the label of the column
Returns:
the index, starts at 0
Throws:
NoSuchColumnException - if the column does not exist

moveRowPointerTo

void moveRowPointerTo(int i)
moves the row pointer to position i

Parameters:
i - the position

getRowPointer

int getRowPointer()
gets the current row number

Returns:
the current row number

next

boolean next()
move pointer forward

Returns:
true if there is another row


Copyright © 2012. All Rights Reserved.