org.objectweb.speedo.query.lib
Class QueriesUnion

java.lang.Object
  extended byorg.objectweb.speedo.query.lib.QueriesUnion
All Implemented Interfaces:
org.objectweb.medor.tuple.api.TupleCollection

public class QueriesUnion
extends java.lang.Object
implements org.objectweb.medor.tuple.api.TupleCollection

Is in charge of making the union of Medor query. This union is hidden behind the TupleCollection interface, but the TupleStructure is variable.

Author:
S.Chassande-Barrioz

Constructor Summary
QueriesUnion(org.objectweb.medor.expression.api.ParameterOperand[] pos, ProxyManager pm, java.lang.Object connection, QueryEvalContext[] qecs, QueryDefinition userqd)
           
 
Method Summary
 void close()
           
 void first()
           
 org.objectweb.medor.api.TupleStructure getMetaData()
           
 int getRow()
           
 org.objectweb.medor.tuple.api.Tuple getTuple()
           
 org.objectweb.medor.tuple.api.Tuple getTuple(int row)
           
 boolean isEmpty()
           
 boolean isLast()
           
 boolean next()
           
 boolean row(int row)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueriesUnion

public QueriesUnion(org.objectweb.medor.expression.api.ParameterOperand[] pos,
                    ProxyManager pm,
                    java.lang.Object connection,
                    QueryEvalContext[] qecs,
                    QueryDefinition userqd)
             throws org.objectweb.medor.api.MedorException
Method Detail

next

public boolean next()
             throws org.objectweb.medor.api.MedorException
Specified by:
next in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

first

public void first()
           throws org.objectweb.medor.api.MedorException
Specified by:
first in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

getTuple

public org.objectweb.medor.tuple.api.Tuple getTuple()
                                             throws org.objectweb.medor.api.MedorException
Specified by:
getTuple in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

isEmpty

public boolean isEmpty()
                throws org.objectweb.medor.api.MedorException
Specified by:
isEmpty in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

close

public void close()
           throws org.objectweb.medor.api.MedorException
Specified by:
close in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

getMetaData

public org.objectweb.medor.api.TupleStructure getMetaData()
                                                   throws org.objectweb.medor.api.MedorException
Specified by:
getMetaData in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

isLast

public boolean isLast()
               throws org.objectweb.medor.api.MedorException
Specified by:
isLast in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

getTuple

public org.objectweb.medor.tuple.api.Tuple getTuple(int row)
                                             throws org.objectweb.medor.api.MedorException
Specified by:
getTuple in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

row

public boolean row(int row)
            throws org.objectweb.medor.api.MedorException
Specified by:
row in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException

getRow

public int getRow()
           throws org.objectweb.medor.api.MedorException
Specified by:
getRow in interface org.objectweb.medor.tuple.api.TupleCollection
Throws:
org.objectweb.medor.api.MedorException