org.drizzle.jdbc.internal.common.queryresults
Class DrizzleInsertIdQueryResult

java.lang.Object
  extended by org.drizzle.jdbc.internal.common.queryresults.DrizzleInsertIdQueryResult
All Implemented Interfaces:
QueryResult, SelectQueryResult

public class DrizzleInsertIdQueryResult
extends java.lang.Object
implements SelectQueryResult

. User: marcuse Date: Mar 9, 2009 Time: 8:34:44 PM


Constructor Summary
DrizzleInsertIdQueryResult(long insertId, long rows, java.lang.String message)
           
 
Method Summary
 void close()
           
 int getColumnId(java.lang.String columnLabel)
          get the id of the column named columnLabel
 java.util.List<ColumnInformation> getColumnInformation()
           
 java.lang.String getMessage()
           
 ResultSetType getResultSetType()
           
 int getRowPointer()
          gets the current row number
 int getRows()
           
 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
 short getWarnings()
           
 void moveRowPointerTo(int i)
          moves the row pointer to position i
 boolean next()
          move pointer forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrizzleInsertIdQueryResult

public DrizzleInsertIdQueryResult(long insertId,
                                  long rows,
                                  java.lang.String message)
Method Detail

getValueObject

public ValueObject getValueObject(int index)
                           throws NoSuchColumnException
Description copied from interface: SelectQueryResult
gets the value object at position index, starts at 0

Specified by:
getValueObject in interface SelectQueryResult
Parameters:
index - the position, starts at 0
Returns:
the value object at position index
Throws:
NoSuchColumnException - if the column does not exist

getValueObject

public ValueObject getValueObject(java.lang.String columnName)
                           throws NoSuchColumnException
Description copied from interface: SelectQueryResult
gets the value object in column named columnName

Specified by:
getValueObject in interface SelectQueryResult
Parameters:
columnName - the name of the column
Returns:
a value object
Throws:
NoSuchColumnException - if the column does not exist

getRows

public int getRows()
Specified by:
getRows in interface QueryResult

getColumnId

public int getColumnId(java.lang.String columnLabel)
                throws NoSuchColumnException
Description copied from interface: SelectQueryResult
get the id of the column named columnLabel

Specified by:
getColumnId in interface SelectQueryResult
Parameters:
columnLabel - the label of the column
Returns:
the index, starts at 0
Throws:
NoSuchColumnException - if the column does not exist

moveRowPointerTo

public void moveRowPointerTo(int i)
Description copied from interface: SelectQueryResult
moves the row pointer to position i

Specified by:
moveRowPointerTo in interface SelectQueryResult
Parameters:
i - the position

getRowPointer

public int getRowPointer()
Description copied from interface: SelectQueryResult
gets the current row number

Specified by:
getRowPointer in interface SelectQueryResult
Returns:
the current row number

next

public boolean next()
Description copied from interface: SelectQueryResult
move pointer forward

Specified by:
next in interface SelectQueryResult
Returns:
true if there is another row

getColumnInformation

public java.util.List<ColumnInformation> getColumnInformation()
Specified by:
getColumnInformation in interface QueryResult

getResultSetType

public ResultSetType getResultSetType()
Specified by:
getResultSetType in interface QueryResult

close

public void close()
Specified by:
close in interface QueryResult

getWarnings

public short getWarnings()
Specified by:
getWarnings in interface QueryResult

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface QueryResult


Copyright © 2012. All Rights Reserved.