org.xerial.db
Class AbstractTuple

java.lang.Object
  extended by org.xerial.db.AbstractTuple
All Implemented Interfaces:
Tuple
Direct Known Subclasses:
TupleImpl, TupleOnBuffer

public abstract class AbstractTuple
extends Object
implements Tuple

A base implementation of the Tuple interface

Author:
leo

Constructor Summary
AbstractTuple(Relation relation)
           
 
Method Summary
 Relation getRelation()
          Gets the relational schema of this tuple
abstract  Object getValue(int relationIndex)
          Gets the column value
 Object getValue(String parameterName)
          Gets the column value
abstract  void setValue(int relationIndex, Object value)
          Sets the tuple value of the specified column
 void setValue(String parameterName, Object value)
          Gets the tuple value of the specified column name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xerial.db.Tuple
getByteSize, load, save
 

Constructor Detail

AbstractTuple

public AbstractTuple(Relation relation)
Method Detail

getRelation

public Relation getRelation()
Description copied from interface: Tuple
Gets the relational schema of this tuple

Specified by:
getRelation in interface Tuple
Returns:

setValue

public abstract void setValue(int relationIndex,
                              Object value)
Description copied from interface: Tuple
Sets the tuple value of the specified column

Specified by:
setValue in interface Tuple
Parameters:
relationIndex - the column index to which the value is set
value - the column value to set

setValue

public void setValue(String parameterName,
                     Object value)
Description copied from interface: Tuple
Gets the tuple value of the specified column name

Specified by:
setValue in interface Tuple
Parameters:
parameterName - the column name to which the value is set
value - the column value to set

getValue

public abstract Object getValue(int relationIndex)
Description copied from interface: Tuple
Gets the column value

Specified by:
getValue in interface Tuple
Parameters:
relationIndex - the column index from which the value is read
Returns:
the column value of the specfied column index

getValue

public Object getValue(String parameterName)
Description copied from interface: Tuple
Gets the column value

Specified by:
getValue in interface Tuple
Parameters:
parameterName - the column name from which the value is read
Returns:
the column value of the specfied column name


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.