be.SIRAPRISE.client
Class InsertionOrderRelation

java.lang.Object
  extended by be.SIRAPRISE.client.AbstractTupleContainer
      extended by be.SIRAPRISE.client.AbstractRelation
          extended by be.SIRAPRISE.client.InsertionOrderRelation
All Implemented Interfaces:
Relation, TupleContainer, java.lang.Iterable<Tuple>

public final class InsertionOrderRelation
extends AbstractRelation

An InsertionOrderRelation is a relation that maintains its tuples in insertion order.

Author:
Erwin Smout

Constructor Summary
InsertionOrderRelation(Heading heading)
          Creates the Relation object, declaring it to be of the given Heading type.
 
Method Summary
 boolean addOK(Tuple tuple)
          "exit" method called by the addTuple() methods to check if it is OK to add the given tuple to this relation.
 
Methods inherited from class be.SIRAPRISE.client.AbstractRelation
addTupleWithoutHeadingCheck, clear, containsTuple, containsTuples, equals, getTupleSet, hashCode, iterator, removeTuple, size
 
Methods inherited from class be.SIRAPRISE.client.AbstractTupleContainer
addTuplesWithHeadingCheck, addTuplesWithoutHeadingCheck, addTupleWithHeadingCheck, getHeading, printBodyEscapedWithBodyHeaderWithoutTypeNames, printBodyEscapedWithBodyHeaderWithTypeNames, printBodyEscapedWithoutBodyHeaderWithoutTypeNames, printBodyEscapedWithoutBodyHeaderWithTypeNames, printBodyWithBodyHeaderWithoutTypeNames, printBodyWithBodyHeaderWithTypeNames, printBodyWithoutBodyHeaderWithoutTypeNames, printBodyWithoutBodyHeaderWithTypeNames, printBodyXMLWithBodyHeader, printBodyXMLWithoutBodyHeader, printValueEscapedWithoutTypeNames, printValueEscapedWithTypeNames, printValueWithoutTypeNames, printValueWithTypeNames, printValueXML, removeTuples, toObjectArray, toObjectArrayIgnoringMissingSetters, toObjectCollection, toObjectCollectionIgnoringMissingSetters, toObjectsArray, toObjectsCollection, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface be.SIRAPRISE.client.TupleContainer
addTuplesWithHeadingCheck, addTuplesWithoutHeadingCheck, addTupleWithHeadingCheck, getHeading, printValueEscapedWithoutTypeNames, printValueEscapedWithTypeNames, printValueWithoutTypeNames, printValueWithTypeNames, printValueXML, removeTuples, toObjectArray, toObjectArrayIgnoringMissingSetters, toObjectCollection, toObjectCollectionIgnoringMissingSetters, toObjectsArray, toObjectsCollection
 

Constructor Detail

InsertionOrderRelation

public InsertionOrderRelation(Heading heading)
Creates the Relation object, declaring it to be of the given Heading type.

Parameters:
heading - The heading the tuples in this relation are expected to conform to.
Method Detail

addOK

public boolean addOK(Tuple tuple)
Description copied from class: AbstractRelation
"exit" method called by the addTuple() methods to check if it is OK to add the given tuple to this relation. This method should return false only in very specific circumstances.

Specified by:
addOK in class AbstractRelation
Parameters:
tuple - The tuple about to be added to the relation.
Returns:
true if it is OK to add the tuple to the given relation.