org.objectweb.medor.tuple.api
Interface Tuple

All Known Implementing Classes:
MemoryTuple

public interface Tuple

This interface represents a tuple like in database terminology.

It is a list of attributes. Each getXXX(attributeNum) method retrieves the value of an attribute into an XXX type if possible. Columns are numbered starting from 1.

Tuple extends the Cloneable interface to indicate to the Object.clone() method that it is legal for that method to make a field-for-field copy of instances of a tuple class.


Method Summary
 java.math.BigDecimal getBigDecimal(int i)
          Returns the value of the designated column in the current row of this Tuple as a BigDecimal in the java programming language
 java.math.BigInteger getBigInteger(int i)
          Returns the value of the designated column in the current row of this Tuple as a BigDecimal in the java programming language
 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 Java byte
 byte[] getByteArray(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java byte
 char getChar(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java char
 char[] getCharArray(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java char[]
 java.util.Date getDate(int i)
          Returns the value of the designated column in the current row of this Tuple as a java.sql.Data
 double getDouble(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java double
 float getFloat(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java float
 int getInt(int i)
          Returns the value of the designated column in the current row of this Tuple as a java int
 Operand getLikeOperand(int i)
          Returns the value of the designated column in the current row of this Tuple as an org.objectweb.medor.filter.Operand Object
 long getLong(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java long
 java.lang.Object getObject(int i)
          Returns the value of the designated column in the current row of this Tuple as a Java Object
 short getShort(int i)
          Returns the value of the designated column in the current row of this Tuple as a Short in the java programming language
 int getSize()
          Give the number of the attribute in this Tuple object.
 java.lang.String getString(int i)
          Returns the value of the designated column in the current row of this Tuple as a String in java programming language
 TupleCollection getTupleCollection(int i)
          Returns the value of the designated column in the current row of this Tuple as a org.objectweb.medor object
 boolean isDefined(int i)
           
 Operand[] toOperandArray()
          Give the array of Operand object representation of the Tuple.
 

Method Detail

getSize

public int getSize()
Give the number of the attribute in this Tuple object.

Returns:
an int

toOperandArray

public Operand[] toOperandArray()
Give the array of Operand object representation of the Tuple.

Returns:
an array of Operand type.

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

Throws:
MedorException

getByte

public byte getByte(int i)
             throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java byte

Throws:
MedorException

getByteArray

public byte[] getByteArray(int i)
                    throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java byte

Throws:
MedorException

getChar

public char getChar(int i)
             throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java char

Throws:
MedorException

getCharArray

public char[] getCharArray(int i)
                    throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java char[]

Throws:
MedorException

getDate

public java.util.Date getDate(int i)
                       throws MedorException
Returns the value of the designated column in the current row of this Tuple as a java.sql.Data

Throws:
MedorException

getDouble

public double getDouble(int i)
                 throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java double

Throws:
MedorException

getFloat

public float getFloat(int i)
               throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java float

Throws:
MedorException

getInt

public int getInt(int i)
           throws MedorException
Returns the value of the designated column in the current row of this Tuple as a java int

Throws:
MedorException

getLikeOperand

public Operand getLikeOperand(int i)
                       throws MedorException
Returns the value of the designated column in the current row of this Tuple as an org.objectweb.medor.filter.Operand Object

Throws:
MedorException

getLong

public long getLong(int i)
             throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java long

Throws:
MedorException

getObject

public java.lang.Object getObject(int i)
                           throws MedorException
Returns the value of the designated column in the current row of this Tuple as a Java Object

Throws:
MedorException

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 in the java programming language

Throws:
MedorException

getBigDecimal

public java.math.BigDecimal getBigDecimal(int i)
                                   throws MedorException
Returns the value of the designated column in the current row of this Tuple as a BigDecimal in the java programming language

Throws:
MedorException

getBigInteger

public java.math.BigInteger getBigInteger(int i)
                                   throws MedorException
Returns the value of the designated column in the current row of this Tuple as a BigDecimal in the java programming language

Throws:
MedorException

getString

public java.lang.String getString(int i)
                           throws MedorException
Returns the value of the designated column in the current row of this Tuple as a String in java programming language

Throws:
MedorException

getTupleCollection

public TupleCollection getTupleCollection(int i)
                                   throws MedorException
Returns the value of the designated column in the current row of this Tuple as a org.objectweb.medor object

Throws:
MedorException

isDefined

public boolean isDefined(int i)