org.objectweb.medor.query.jorm.lib
Class JormQueryTreeHelper
java.lang.Object
org.objectweb.medor.query.jorm.lib.JormQueryTreeHelper
public class JormQueryTreeHelper
extends java.lang.Object
This helper class provides methods to helper the Jorm/Medor users.
- S.Chassande-Barrioz
getJormExtents
public static Collection getJormExtents(QueryTree qt)
Retrieves a Collection of JormExtent instance which are used in a given
query tree. This permits to known all JormExtent used in a queries and to
assign some parameters in order to replace a JormExtent by a specific
query leaf during the optimization step. A JormExtent can be a
ClassExtent or a GenClassExtent.
qt
- is the querytree instance containing (or not) JormExtent nodes
- a collection of JormExtent instances
getRequiredPNameManagers
public static Collection getRequiredPNameManagers(QueryTree qt)
Retrieves a Collection of ParameterOperand reuiqring in a given query
tree which the type is NAMING_CONTEXT.
It permits to know all parameters needed at evaluation
time for the navigation over classes persitent with Jorm.
qt
- is the query tree requiring PNamingContext parameters
- a collection of ParameterOperand instance