org.objectweb.medor.query.lib

Class Intersection

Implemented Interfaces:
Cloneable, Cloneable, FilteredQueryTree, QueryNode, QueryTree, TupleStructure

public class Intersection
extends BasicQueryNode

Author:
Sebastien Chassande-Barrioz

Field Summary

Fields inherited from class org.objectweb.medor.query.lib.BasicQueryNode

children, filter, indexes, inner, tupleLoader

Fields inherited from class org.objectweb.medor.query.lib.BasicQueryTree

distinct, indexes, name, orderfields

Fields inherited from class org.objectweb.medor.lib.BasicTupleStructure

fields, logger, name2field

Constructor Summary

Intersection()
Intersection(QueryTree leftQT, QueryTree rightQT, String name)

Method Summary

Object
clone(Object clone, Map obj2clone)
Expression
getQueryFilter()
Retrieves the filter associated to the QueryTree.
short
getType()
void
setQueryFilter(Expression f)
The setQueryFilter method will be overwritten for implementations which do not support the operation.

Methods inherited from class org.objectweb.medor.query.lib.BasicQueryNode

addCalculatedField, addChild, addField, addPropagatedField, clone, getChildren, getFieldName, getQueryFilter, getTupleLoader, getType, isOuter, removeField, replace, setOuter, setQueryFilter, setTupleLoader, updateCalculatedField, updateChildren, updatePropagatedField

Methods inherited from class org.objectweb.medor.query.lib.BasicQueryTree

clone, getDistinct, getName, getOrderBy, getTupleStructure, setDistinct, setOrderBy

Methods inherited from class org.objectweb.medor.lib.BasicTupleStructure

clone, contains, contains, getField, getField, getFieldRank, getFields, getSize

Constructor Details

Intersection

public Intersection()


Intersection

public Intersection(QueryTree leftQT,
                    QueryTree rightQT,
                    String name)
            throws MedorException

Method Details

clone

public Object clone(Object clone,
                    Map obj2clone)
            throws CloneNotSupportedException
Overrides:
clone in interface BasicQueryNode


getQueryFilter

public Expression getQueryFilter()
Retrieves the filter associated to the QueryTree. This filter is represented by an Expression.
Specified by:
getQueryFilter in interface FilteredQueryTree
Overrides:
getQueryFilter in interface BasicQueryNode

Returns:
the query filter Expression associated to the QueryNode.

See Also:
Expression


getType

public short getType()
Specified by:
getType in interface QueryNode
Overrides:
getType in interface BasicQueryNode


setQueryFilter

public void setQueryFilter(Expression f)
The setQueryFilter method will be overwritten for implementations which do not support the operation.
Specified by:
setQueryFilter in interface FilteredQueryTree
Overrides:
setQueryFilter in interface BasicQueryNode