net.sf.farrago.fennel.tuple
Class FennelTupleDescriptor

java.lang.Object
  extended by net.sf.farrago.fennel.tuple.FennelTupleDescriptor
All Implemented Interfaces:
Serializable

public class FennelTupleDescriptor
extends Object
implements Serializable

FennelTupleDescriptor provides the metadata describing a tuple. This is used in conjunction with FennelTupleAccessor objects to marshall and unmarshall data into FennelTupleData objects from external formats. This class is JDK 1.4 compatible.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/tuple/FennelTupleDescriptor.java#9 $
Author:
Mike Bennett
See Also:
Serialized Form

Field Summary
private  List attrs
          a collection of the FennelTupleAttributeDescriptor objects we're keeping.
private static long serialVersionUID
          SerialVersionUID created with JDK 1.5 serialver tool.
 
Constructor Summary
FennelTupleDescriptor()
          default constructor
 
Method Summary
 int add(FennelTupleAttributeDescriptor newDesc)
          Adds a new FennelTupleAttributeDescriptor.
 boolean containsNullable()
          Indicates if any descriptors we're keeping might contain nulls.
 FennelTupleAttributeDescriptor getAttr(int i)
          Gets an FennelTupleAttributeDescriptor given an ordinal index.
 int getAttrCount()
          Returns the number of attributes we are holding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool.

See Also:
Constant Field Values

attrs

private final List attrs
a collection of the FennelTupleAttributeDescriptor objects we're keeping.

Constructor Detail

FennelTupleDescriptor

public FennelTupleDescriptor()
default constructor

Method Detail

getAttrCount

public int getAttrCount()
Returns the number of attributes we are holding.


getAttr

public FennelTupleAttributeDescriptor getAttr(int i)
Gets an FennelTupleAttributeDescriptor given an ordinal index.


add

public int add(FennelTupleAttributeDescriptor newDesc)
Adds a new FennelTupleAttributeDescriptor.

Returns:
the index where it was added

containsNullable

public boolean containsNullable()
Indicates if any descriptors we're keeping might contain nulls.