org.objectweb.speedo.query.jdo
Class JDOQueriesUnion

java.lang.Object
  extended by org.objectweb.speedo.query.jdo.JDOQueriesUnion
All Implemented Interfaces:
TupleCollection

public class JDOQueriesUnion
extends java.lang.Object
implements 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
JDOQueriesUnion(org.objectweb.medor.expression.api.ParameterOperand[] pos, JDOPOManagerItf pm, java.lang.Object connection, JDOQueryEvalContext[] qecs, QueryDefinition userqd)
           
 
Method Summary
 void close()
           
 void first()
           
 TupleStructure getMetaData()
           
 int getRow()
           
 Tuple getTuple()
           
 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

JDOQueriesUnion

public JDOQueriesUnion(org.objectweb.medor.expression.api.ParameterOperand[] pos,
                       JDOPOManagerItf pm,
                       java.lang.Object connection,
                       JDOQueryEvalContext[] qecs,
                       QueryDefinition userqd)
                throws MedorException
Throws:
MedorException
Method Detail

next

public boolean next()
             throws MedorException
Specified by:
next in interface TupleCollection
Throws:
MedorException

first

public void first()
           throws MedorException
Specified by:
first in interface TupleCollection
Throws:
MedorException

getTuple

public Tuple getTuple()
               throws MedorException
Specified by:
getTuple in interface TupleCollection
Throws:
MedorException

isEmpty

public boolean isEmpty()
                throws MedorException
Specified by:
isEmpty in interface TupleCollection
Throws:
MedorException

close

public void close()
           throws MedorException
Specified by:
close in interface TupleCollection
Throws:
MedorException

getMetaData

public TupleStructure getMetaData()
                           throws MedorException
Specified by:
getMetaData in interface TupleCollection
Throws:
MedorException

isLast

public boolean isLast()
               throws MedorException
Specified by:
isLast in interface TupleCollection
Throws:
MedorException

getTuple

public Tuple getTuple(int row)
               throws MedorException
Specified by:
getTuple in interface TupleCollection
Throws:
MedorException

row

public boolean row(int row)
            throws MedorException
Specified by:
row in interface TupleCollection
Throws:
MedorException

getRow

public int getRow()
           throws MedorException
Specified by:
getRow in interface TupleCollection
Throws:
MedorException