Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mysql.jdbc
Class RowDataStatic  view RowDataStatic download RowDataStatic.java

java.lang.Object
  extended bycom.mysql.jdbc.RowDataStatic
All Implemented Interfaces:
RowData

public class RowDataStatic
extends java.lang.Object
implements RowData

Represents an in-memory result set

Version:
$Id: RowDataStatic.java,v 1.10.2.5 2004/08/09 22:15:12 mmatthew Exp $

Field Summary
private  int index
           
private  ResultSet owner
           
private  java.util.List rows
           
 
Fields inherited from interface com.mysql.jdbc.RowData
RESULT_SET_SIZE_UNKNOWN
 
Constructor Summary
RowDataStatic(java.util.ArrayList rows)
          Creates a new RowDataStatic object.
 
Method Summary
 void addRow(byte[][] row)
          DOCUMENT ME!
 void afterLast()
          Moves to after last.
 void beforeFirst()
          Moves to before first.
 void beforeLast()
          DOCUMENT ME!
 void close()
          DOCUMENT ME!
 byte[][] getAt(int atIndex)
          DOCUMENT ME!
 int getCurrentRowNumber()
          DOCUMENT ME!
 ResultSet getOwner()
          Returns the result set that 'owns' this RowData
 boolean hasNext()
          DOCUMENT ME!
 boolean isAfterLast()
          Returns true if we got the last element.
 boolean isBeforeFirst()
          Returns if iteration has not occured yet.
 boolean isDynamic()
          DOCUMENT ME!
 boolean isEmpty()
          DOCUMENT ME!
 boolean isFirst()
          DOCUMENT ME!
 boolean isLast()
          DOCUMENT ME!
 void moveRowRelative(int rows)
          DOCUMENT ME!
 byte[][] next()
          DOCUMENT ME!
 void removeRow(int atIndex)
          DOCUMENT ME!
 void setCurrentRow(int newIndex)
          DOCUMENT ME!
 void setOwner(ResultSet rs)
          Set the result set that 'owns' this RowData
 int size()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

private java.util.List rows

index

private int index

owner

private ResultSet owner
Constructor Detail

RowDataStatic

public RowDataStatic(java.util.ArrayList rows)
Creates a new RowDataStatic object.

Method Detail

isAfterLast

public boolean isAfterLast()
Returns true if we got the last element.

Specified by:
isAfterLast in interface RowData

getAt

public byte[][] getAt(int atIndex)
DOCUMENT ME!

Specified by:
getAt in interface RowData

isBeforeFirst

public boolean isBeforeFirst()
Returns if iteration has not occured yet.

Specified by:
isBeforeFirst in interface RowData

setCurrentRow

public void setCurrentRow(int newIndex)
DOCUMENT ME!

Specified by:
setCurrentRow in interface RowData

setOwner

public void setOwner(ResultSet rs)
Description copied from interface: RowData
Set the result set that 'owns' this RowData

Specified by:
setOwner in interface RowData

getOwner

public ResultSet getOwner()
Description copied from interface: RowData
Returns the result set that 'owns' this RowData

Specified by:
getOwner in interface RowData

getCurrentRowNumber

public int getCurrentRowNumber()
DOCUMENT ME!

Specified by:
getCurrentRowNumber in interface RowData

isDynamic

public boolean isDynamic()
DOCUMENT ME!

Specified by:
isDynamic in interface RowData

isEmpty

public boolean isEmpty()
DOCUMENT ME!

Specified by:
isEmpty in interface RowData

isFirst

public boolean isFirst()
DOCUMENT ME!

Specified by:
isFirst in interface RowData

isLast

public boolean isLast()
DOCUMENT ME!

Specified by:
isLast in interface RowData

addRow

public void addRow(byte[][] row)
DOCUMENT ME!

Specified by:
addRow in interface RowData

afterLast

public void afterLast()
Moves to after last.

Specified by:
afterLast in interface RowData

beforeFirst

public void beforeFirst()
Moves to before first.

Specified by:
beforeFirst in interface RowData

beforeLast

public void beforeLast()
DOCUMENT ME!

Specified by:
beforeLast in interface RowData

close

public void close()
DOCUMENT ME!

Specified by:
close in interface RowData

hasNext

public boolean hasNext()
DOCUMENT ME!

Specified by:
hasNext in interface RowData

moveRowRelative

public void moveRowRelative(int rows)
DOCUMENT ME!

Specified by:
moveRowRelative in interface RowData

next

public byte[][] next()
DOCUMENT ME!

Specified by:
next in interface RowData

removeRow

public void removeRow(int atIndex)
DOCUMENT ME!

Specified by:
removeRow in interface RowData

size

public int size()
DOCUMENT ME!

Specified by:
size in interface RowData