org.objectweb.medor.tuple.lib

Class MemoryTuple

Implemented Interfaces:
Tuple

public class MemoryTuple
extends BasicCloneable
implements Tuple

This class represent a tuple interface in a memory. Java array is used to stores fienlds Values. Rather than getXXX() methods, setXXX() allow updating the content of the Tuple.

Constructor Summary

MemoryTuple()
MemoryTuple(fields[] )
MemoryTuple(fields[] )
MemoryTuple(types[] )

Method Summary

Object
clone(Object clone, Map obj2clone)
BigDecimal
getBigDecimal(int i)
BigInteger
getBigInteger(int i)
boolean
getBoolean(int i)
byte
getByte(int i)
byte[]
getByteArray(int i)
char
getChar(int i)
char[]
getCharArray(int i)
Date
getDate(int i)
double
getDouble(int i)
float
getFloat(int i)
int
getInt(int i)
Operand
getLikeOperand(int i)
long
getLong(int i)
Object
getObject(int i)
short
getShort(int i)
int
getSize()
String
getString(int i)
TupleCollection
getTupleCollection(int i)
boolean
isDefined(int i)
void
setBigDecimal(BigDecimal x, int i)
void
setBigInteger(BigInteger x, int i)
void
setBoolean(boolean x, int i)
void
setByte(byte x, int i)
void
setChar(char x, int i)
void
setDate(Date x, int i)
void
setDouble(double x, int i)
void
setFloat(float x, int i)
void
setInt(int x, int i)
void
setLong(long x, int i)
void
setShort(short x, int i)
void
setString(String x, int i)
Operand[]
toOperandArray()

Constructor Details

MemoryTuple

public MemoryTuple()


MemoryTuple

public MemoryTuple(fields[] )


MemoryTuple

public MemoryTuple(fields[] )
            throws TypingException


MemoryTuple

public MemoryTuple(types[] )

Method Details

clone

public Object clone(Object clone,
                    Map obj2clone)
            throws CloneNotSupportedException


getBigDecimal

public BigDecimal getBigDecimal(int i)
            throws MedorException
Specified by:
getBigDecimal in interface Tuple


getBigInteger

public BigInteger getBigInteger(int i)
            throws MedorException
Specified by:
getBigInteger in interface Tuple


getBoolean

public boolean getBoolean(int i)
            throws MedorException
Specified by:
getBoolean in interface Tuple


getByte

public byte getByte(int i)
            throws MedorException
Specified by:
getByte in interface Tuple


getByteArray

public byte[] getByteArray(int i)
            throws MedorException
Specified by:
getByteArray in interface Tuple


getChar

public char getChar(int i)
            throws MedorException
Specified by:
getChar in interface Tuple


getCharArray

public char[] getCharArray(int i)
            throws MedorException
Specified by:
getCharArray in interface Tuple


getDate

public Date getDate(int i)
            throws MedorException
Specified by:
getDate in interface Tuple


getDouble

public double getDouble(int i)
            throws MedorException
Specified by:
getDouble in interface Tuple


getFloat

public float getFloat(int i)
            throws MedorException
Specified by:
getFloat in interface Tuple


getInt

public int getInt(int i)
            throws MedorException
Specified by:
getInt in interface Tuple


getLikeOperand

public Operand getLikeOperand(int i)
            throws MedorException
Specified by:
getLikeOperand in interface Tuple


getLong

public long getLong(int i)
            throws MedorException
Specified by:
getLong in interface Tuple


getObject

public Object getObject(int i)
            throws MedorException
Specified by:
getObject in interface Tuple


getShort

public short getShort(int i)
            throws MedorException
Specified by:
getShort in interface Tuple


getSize

public int getSize()
Specified by:
getSize in interface Tuple


getString

public String getString(int i)
            throws MedorException
Specified by:
getString in interface Tuple


getTupleCollection

public TupleCollection getTupleCollection(int i)
            throws MedorException
Specified by:
getTupleCollection in interface Tuple


isDefined

public boolean isDefined(int i)
Specified by:
isDefined in interface Tuple


setBigDecimal

public void setBigDecimal(BigDecimal x,
                          int i)
            throws MedorException


setBigInteger

public void setBigInteger(BigInteger x,
                          int i)
            throws MedorException


setBoolean

public void setBoolean(boolean x,
                       int i)
            throws MedorException


setByte

public void setByte(byte x,
                    int i)
            throws MedorException


setChar

public void setChar(char x,
                    int i)
            throws MedorException


setDate

public void setDate(Date x,
                    int i)
            throws MedorException


setDouble

public void setDouble(double x,
                      int i)
            throws MedorException


setFloat

public void setFloat(float x,
                     int i)
            throws MedorException


setInt

public void setInt(int x,
                   int i)
            throws MedorException


setLong

public void setLong(long x,
                    int i)
            throws MedorException


setShort

public void setShort(short x,
                     int i)
            throws MedorException


setString

public void setString(String x,
                      int i)
            throws MedorException


toOperandArray

public Operand[] toOperandArray()
Specified by:
toOperandArray in interface Tuple