This interface is an implementation of the TupleCollection interface using
Java collections. It can be used when we have obejcts fetched in the memory.
clone
public Object clone(Object clone,
Map obj2clone)
throws CloneNotSupportedException
contains
public boolean contains(Tuple T)
Some operations of researchs and iterations.
getBoolean
public boolean getBoolean(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a Boolean of java programming language
i
- the first column is 1, the second is 2, ...
- a boolean value
MedorException
- if data source access error or invalid cursor
getByte
public byte getByte(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a Byte of java programming language
i
- the first column is 1, the second is 2, ...
- a byte value
MedorException
- if data source access error or invalid cursor
getChar
public char getChar(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a char of java programming language
i
- the first column is 1, the second is 2, ...
- a character value
MedorException
- if data source access error or invalid cursor
getDate
public Date getDate(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a java.util.Date of java programming language
i
- the first column is 1, the second is 2, ...
- a Date value as SQL type
MedorException
- if data source access error or invalid cursor
getDouble
public double getDouble(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a double of java programming language
i
- the first column is 1, the second is 2, ...
- a double value
MedorException
- if data source access error or invalid cursor
getFloat
public float getFloat(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a float of java programming language
i
- the first column is 1, the second is 2, ...
- a float value
MedorException
- if data source access error or invalid cursor
getInt
public int getInt(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as an int of java programming language
i
- the first column is 1, the second is 2, ...
- an integer value
MedorException
- if data source access error or invalid cursor
getLong
public long getLong(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a long of java programming language
i
- the first column is 1, the second is 2, ...
- a long value
MedorException
- if data source access error or invalid cursor
getShort
public short getShort(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a short of java programming language
i
- the first column is 1, the second is 2, ...
- a short value
MedorException
- if data source access error or invalid cursor
getString
public String getString(int i)
throws MedorException
Returns the value of the designated column in the current row of this Tuple
as a java.lang.String of java programming language
i
- the first column is 1, the second is 2, ...
- a String value
MedorException
- if data source access error or invalid cursor
getTuple
public Tuple getTuple(int i)
throws MedorException
Returns the value of the designated row number of the TupleCollection
as a Tuple Object.
- getTuple in interface TupleCollection
i
- the first tuple is 1, the second is 2, ...
- a Tuple Object
MedorException
- if data source access error
insertTuple
public void insertTuple(int i,
Tuple T)
throws MedorException
Insert the tuple T at the designated row number of the TupleCollection
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 number
insertTuple
public void insertTuple(Tuple T)
throws MedorException
Insert the tuple T at the last of this TupleCollection object
T
- is the tuple to be inserted
MedorException
- if data source access error
removeTuple
public void removeTuple(int row)
throws MedorException
Remove the tuple of the designated row number from the TupleCollection object
row
- the first tuple is 1, the second is 2, ...
MedorException
- if data source access error or invalid tuple number
setBoolean
public void setBoolean(boolean x,
int i)
throws MedorException