org.objectweb.medor.tuple.lib
Class EmptyTupleCollection
BasicCloneable
org.objectweb.medor.tuple.lib.EmptyTupleCollection
- TupleCollection
public class EmptyTupleCollection
extends BasicCloneable
This class represents an empty TupleCollection.
- S.Chassande-Barrioz
Object | clone(Object clone, Map obj2clone)
|
void | close() - It closes the TupleCollection, relaeases used resources
(example : ResultSet).
|
void | first() - Moves the cursor to the first Tuple, row number 1.
|
TupleStructure | getMetaData() - Retrieves the number,types and stors properties of the data sources of this TupleCollection Object.
|
int | getRow() - Retrieves the current row Number.
|
Tuple | getTuple() - Returns the Tuple value of the current row of this TupleCollection object.
|
Tuple | getTuple(int row) - Returns the Tuple value of the designeted row of this TupleCollection object.
|
boolean | isEmpty() - Tell whether the current TupleCollection Object is empty or no.
|
boolean | isLast() - Indicates whether the cursor is on the last row of this TupleCollection object.
|
boolean | next() - Moves the cursor down one row from its current position to the next tuple of this
TupleCollection object.
|
boolean | row(int row) - Moves the cursor to the given row number in this TupleCollection object.
|
EmptyTupleCollection
public EmptyTupleCollection()
clone
public Object clone(Object clone,
Map obj2clone)
throws CloneNotSupportedException
close
public void close()
throws MedorException
It closes the TupleCollection, relaeases used resources
(example : ResultSet). The next uses of the TupleCollection will throw
an exception.
- close in interface TupleCollection
isLast
public boolean isLast()
throws MedorException
Indicates whether the cursor is on the last row of this TupleCollection object.
- isLast in interface TupleCollection
- true if the current Tuple is the last one or if the TupleCollection is Empty.
MedorException
- if data source access error
next
public boolean next()
throws MedorException
Moves the cursor down one row from its current position to the next tuple of this
TupleCollection object.
- next in interface TupleCollection
- true if move is impossible and false if move is not performed.
MedorException
- if data source access error
row
public boolean row(int row)
throws MedorException
Moves the cursor to the given row number in this TupleCollection object.
The first row is row 1, the second is row 2, and so on.
- row in interface TupleCollection
- true if move is possible
MedorException
- if row number is invelid or data source access error