|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicCloneable
org.objectweb.medor.tuple.lib.ExplicitTupleCollection
This interface is an implementation of the TupleCollection interface using Java collections. It can be used when we have obejcts fetched in the memory.
Constructor Summary | |
---|---|
ExplicitTupleCollection()
|
|
ExplicitTupleCollection(TupleStructure schema)
|
Method Summary | |
---|---|
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
void |
close()
It closes the TupleCollection, relaeases used resources (example : ResultSet). |
boolean |
contains(Tuple T)
Some operations of researchs and iterations. |
void |
display()
|
void |
first()
Moves the cursor to the first Tuple, row number 1. |
boolean |
getBoolean(int i)
Returns the value of the designated column in the current row of this Tuple as a Boolean of java programming language |
byte |
getByte(int i)
Returns the value of the designated column in the current row of this Tuple as a Byte of java programming language |
char |
getChar(int i)
Returns the value of the designated column in the current row of this Tuple as a char of java programming language |
java.util.Date |
getDate(int i)
Returns the value of the designated column in the current row of this Tuple as a java.util.Date of java programming language |
double |
getDouble(int i)
Returns the value of the designated column in the current row of this Tuple as a double of java programming language |
float |
getFloat(int i)
Returns the value of the designated column in the current row of this Tuple as a float of java programming language |
int |
getInt(int i)
Returns the value of the designated column in the current row of this Tuple as an int of java programming language |
long |
getLong(int i)
Returns the value of the designated column in the current row of this Tuple as a long of java programming language |
TupleStructure |
getMetaData()
Retrieves the number,types and stors properties of the data sources of this TupleCollection Object. |
int |
getRow()
Retrieves the current row Number. |
short |
getShort(int i)
Returns the value of the designated column in the current row of this Tuple as a short of java programming language |
java.lang.String |
getString(int i)
Returns the value of the designated column in the current row of this Tuple as a java.lang.String of java programming language |
Tuple |
getTuple()
Returns the Tuple value of the current row of this TupleCollection object. |
Tuple |
getTuple(int i)
Returns the value of the designated row number of the TupleCollection as a Tuple Object. |
void |
insertTuple(int i,
Tuple T)
Insert the tuple T at the designated row number of the TupleCollection |
void |
insertTuple(Tuple T)
Insert the tuple T at the last 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. |
java.util.Iterator |
iteratorAll()
|
java.util.Iterator |
iteratorOf(int i)
|
boolean |
next()
Moves the cursor down one row from its current position to the next tuple of this TupleCollection object. |
boolean |
previous()
|
void |
removeTuple(int row)
Remove the tuple of the designated row number from the TupleCollection object |
boolean |
row(int row)
Moves the cursor to the given row number in this TupleCollection object. |
void |
setBoolean(boolean x,
int i)
|
void |
setByte(byte x,
int i)
|
void |
setDate(java.util.Date x,
int i)
|
void |
setDouble(double x,
int i)
|
void |
setFloat(float x,
int i)
|
void |
setInt(int x,
int i)
|
void |
setShort(short x,
int i)
|
void |
setString(java.lang.String x,
int i)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExplicitTupleCollection()
public ExplicitTupleCollection(TupleStructure schema) throws MedorException
Method Detail |
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void close() throws MedorException
TupleCollection
close
in interface TupleCollection
MedorException
public TupleStructure getMetaData() throws MedorException
TupleCollection
getMetaData
in interface TupleCollection
MedorException
- if a data source access error occurspublic boolean isEmpty() throws MedorException
TupleCollection
isEmpty
in interface TupleCollection
MedorException
- if data source access error.public boolean isLast() throws MedorException
TupleCollection
isLast
in interface TupleCollection
MedorException
- if data source access errorpublic int size()
public boolean next() throws MedorException
TupleCollection
next
in interface TupleCollection
MedorException
- if data source access errorpublic boolean previous() throws MedorException
MedorException
public boolean row(int row) throws MedorException
TupleCollection
row
in interface TupleCollection
MedorException
- if row number is invelid or data source access errorpublic void first() throws MedorException
TupleCollection
first
in interface TupleCollection
MedorException
- if data source access errorpublic int getRow() throws MedorException
TupleCollection
getRow
in interface TupleCollection
MedorException
- if data source access error.public void insertTuple(int i, Tuple T) throws MedorException
i
- the first tuple is 1, the second is 2, ...T
- is the tuple to be inserted
MedorException
- if data source access error or invalid tuple numberpublic void insertTuple(Tuple T) throws MedorException
T
- is the tuple to be inserted
MedorException
- if data source access errorpublic void removeTuple(int row) throws MedorException
row
- the first tuple is 1, the second is 2, ...
MedorException
- if data source access error or invalid tuple numberpublic Tuple getTuple(int i) throws MedorException
getTuple
in interface TupleCollection
i
- the first tuple is 1, the second is 2, ...
MedorException
- if data source access errorpublic Tuple getTuple() throws MedorException
TupleCollection
getTuple
in interface TupleCollection
MedorException
- if data source access error.public boolean getBoolean(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic byte getByte(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic java.util.Date getDate(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic double getDouble(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic float getFloat(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic int getInt(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic char getChar(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic long getLong(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic short getShort(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic java.lang.String getString(int i) throws MedorException
i
- the first column is 1, the second is 2, ...
MedorException
- if data source access error or invalid cursorpublic void setBoolean(boolean x, int i) throws MedorException
MedorException
public void setByte(byte x, int i) throws MedorException
MedorException
public void setDate(java.util.Date x, int i) throws MedorException
MedorException
public void setDouble(double x, int i) throws MedorException
MedorException
public void setFloat(float x, int i) throws MedorException
MedorException
public void setInt(int x, int i) throws MedorException
MedorException
public void setShort(short x, int i) throws MedorException
MedorException
public void setString(java.lang.String x, int i) throws MedorException
MedorException
public boolean contains(Tuple T)
public void display() throws MedorException
MedorException
public java.util.Iterator iteratorOf(int i) throws MedorException
MedorException
public java.util.Iterator iteratorAll() throws MedorException
MedorException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |