This interface represents a Tuple Collection wich is cached over a CollectionCache object.
It returns true is the QueryLeaf can be rewrite by this LeafRewriter.
It returns true is the QueryLeaf can be rewrite by this LeafRewriter.
This class is the implementation of a catesian result betwin two TupleCollection.
This class represents the extent of a JORM class.
Constructs an extent for the JORM class, in the form of a QueryLeaf.
Constructs an extent for the JORM class, in the form of a QueryLeaf.
In case where this PNameField represents the PName of a Jorm class, this
field is not null and references the Jorm Meta object Class.
Representing a query modelisation object which can be cloned
It closes the TupleCollection, relaeases used resources
(example : ResultSet).
It closes the TupleCollection, relaeases used resources
(example : ResultSet).
It closes the TupleCollection, relaeases used resources
(example : ResultSet).
This interface represents a cache for TupleCollection objets.
MEDOR: Middleware Enabling Distributed Object Requests
Copyright (C) 2001-2003 France Telecom R&D
Contact: alexandre.lefebvre@rd.francetelecom.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Name of the first column name
Name of the second column name
is a list of JoinColumn instance.
Checks the semantic integrity of an expression.
Checks the semantic integrity of an expression.
Checks the semantic integrity of an expression.
A CompositePName is an Operator representing the construction of a PName
from a NamingContext and several Fields.
Constructs a SinglePName from a ParameterOperand representing the
naming context, and an array of FieldOperand.
This implementation of the DataStore interface could be used in all cases
where a data store could be identified by a connection factory.
It builds a ConnectionFactoryDataStore.
This interface represents ressources required by a Medor Query in order to be
evaluated.
Does the cache contains Object ranked int of the associated
Objects to be cached.
Checks whether a given input Field is present in the current
TupleStructure.
Checks whether a given input Field is present in the current
TupleStructure.
Some operations of researchs and iterations.
Checks whether the current TupleStructure has a field of a given name.
Checks whether the current TupleStructure has a field of a given name.
Checks if a QualifiedTable is in the list of QualifiedTables of this
QueryLeaf
Count - class org.objectweb.medor.filter.lib.
Count Count aggregate function.
Count() - constructor for class org.objectweb.medor.filter.lib.
Count This methods creates a NodeEvaluator.
Creates a PrefetchBuffer object.
Allocates a prefetched buffer for the object category and the connection
context in order to register prefetched tuples.
Allocates a prefetched buffer for the object category and the connection
context in order to register prefetched tuples.
Allocates a prefetched buffer for the object category and the connection
context in order to register prefetched tuples.
Allocates a prefetched buffer for the object category and the connection
context in order to register prefetched tuples.
This methods creates the links between the children QueryTrees and
the created QueryNode.
This methods creates the links between the children QueryTrees and
the created QueryNode.
This class represents the extent of a JORM GenClass.
Constructs an extent for the JORM GenClass, in the form of a QueryLeaf.
MEDOR: Middleware Enabling Distributed Object Requests
Copyright (C) 2001-2003 France Telecom R&D
Contact: alexandre.lefebvre@rd.francetelecom.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Return the alias name for the current QualifiedTable.
Return the alias name for the current QualifiedTable.
Returns the value of the designated column
in the current row of this Tuple
as a BigDecimal in the java programming language
Returns the value of the designated column
in the current row of this Tuple
as a BigDecimal in the java programming language
Returns the value of the designated column in the current row of this Tuple
as a Boolean of java programming language
Returns the value of the designated column
in the current row of this Tuple
as a Boolean of java programming language
Returns the value of the designated column in the current row of this Tuple
as a Byte of java programming language
Returns the value of the designated column
in the current row of this Tuple as a Java byte
Returns the value of the designated column
in the current row of this Tuple as a Java byte
Returns the value of the designated column in the current row of this Tuple
as a char of java programming language
Returns the value of the designated column
in the current row of this Tuple as a Java char
Returns the value of the designated column
in the current row of this Tuple as a Java char[]
It retreives the array of the QueryTree used by this QueryNode.
Updates the list of children by screening all Fields and the
query filter.
Retrieves the jorm meta object describing the mapping of the persistent
object representing by its extent.
Returns the name of the data store client.
Returns the name of the column, either in the SQL ResultSet in the case
of RdbStringQueryLeaf, or the name of the column in the QualifiedTable
in the case of RdbExpQueryLeaf.
It retrieves an array of the composite field name.
Methods inherited from QueryLeaf
Returns the type of DataStore
Returns the value of the designated column in the current row of this Tuple
as a java.util.Date of java programming language
Returns the value of the designated column
in the current row of this Tuple as a java.sql.Data
Create an expression to decode a PName.
It adds the default Medor rules in this following order
Returns whether the order is descendant (true) or ascendant (false).
Returns whether the order is descendant (true) or ascendant (false).
Tests whether the results should be distinct or not.
Tests whether the results should be distinct or not.
Tests whether the results should be distinct or not.
Tests whether the results should be distinct or not.
Returns the value of the designated column in the current row of this Tuple
as a double of java programming language
Returns the value of the designated column
in the current row of this Tuple as a Java double
Returns the declared PType of the elements.
Returns the evaluation meta data associated with this node evaluator.
Returns the evaluation meta data associated with this node evaluator.
Returns the evaluation meta data associated with this node evaluator.
Returns the evaluation meta data associated with this node evaluator.
Obtains the field by which to order.
Obtains the field by which to order.
Returns the Field of a given rank in the current TupleStructure.
Returns the Field of a given rank in the current TupleStructure.
Is a shorcut to the
getField(String, PType, JormExtent, BasicRdbExpQueryLeaf, boolean)
method.
Returns a Field object present in this TupleStructure given its name.
Returns a Field object present in this TupleStructure given its name.
Shortcut to the
getField(String, PType, JormExtent, BasicRdbExpQueryLeaf, boolean)
method.
Adds a field in a leaf if it is not already present.
An integer with position i in this array gives the position of the
corresponding field (field number i of the TupleStructure of this
QueryNode) in the array made of the concatenation of the array of fields
from all children of this QueryNode.
An integer with position i in this array gives the position of the
corresponding field (field number i of the TupleStructure of this
QueryNode) in the array made of the concatenation of the array of fields
from all children of this QueryNode.
Obtains the FieldOperand at the start of the navigation.
Returns the rank of a given Field in the current TupleStructure.
Returns the rank of a given Field in the current TupleStructure.
Returns the array of Fields in the current TupleStructure.
Returns the array of Fields in the current TupleStructure.
Returns the value of the designated column in the current row of this Tuple
as a float of java programming language
Returns the value of the designated column
in the current row of this Tuple as a Java float
Builds the FROM clause of the query (without "FROM").
Retrieves the jorm meta object describing the mapping of the persistent
object representing by its extent.
It returns the jorm meta object GenClassRef in case of this PNameField
represents a GenClass identifier or a GenClass element.
Gets the RdbExpField of the GroupBy Clause.
The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees.
The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees.
The index of this Field in the array made of the concatenation of the
tuples from the children QueryTrees.
Returns the value of the designated column in the current row of this Tuple
as an int of java programming language
Returns the value of the designated column
in the current row of this Tuple as a java int
Retrieves a Collection of JormExtent instance which are used in a given
query tree.
Returns the field name without the extent name
It fetches the QueryTree nodes which are 'parents' of QueryLeaf nodes.
Get the current row of the left TupleCollection
Get the current row of the left TupleCollection
Get the current row of the left TupleCollection
Get the current row of the left TupleCollection
Get the current row of the left TupleCollection
Get the current row of the left TupleCollection
This method is used when nesting data.
Returns the value of the designated column
in the current row of this Tuple
as an org.objectweb.medor.filter.Operand Object
Gets the maximum number of tuples to be returned by the evaluation in
the case of a range-limited evaluation.
Gets the maximum number of tuples to be returned by the evaluation in
the case of a range-limited evaluation.
Gets the value for the rank of the first tuple to be returned by the
evaluation in the case of a range-limited evaluation.
Gets the value for the rank of the first tuple to be returned by the
evaluation in the case of a range-limited evaluation.
Returns the value of the designated column in the current row of this Tuple
as a long of java programming language
Returns the value of the designated column
in the current row of this Tuple as a Java long
Retrieves the RdbJormExtentMapping at the position i the packet.
Retrieves the RdbJormExtentMapping at the position i the packet.
Retrieves the number,types and stors properties of the data sources of this TupleCollection Object.
Retrieves the number,types and stors properties of the data sources of this TupleCollection Object.
It contains metadata of fields wich will be projected
Returns the Jorm Meta object which describes the field that is
reached by this navigator.
It returns the jorm meta object Class in case of this PNameField
represents an identifier of a jorm class.
It returns the name of the query tree.
It returns the name of the query tree.
Returns the symbolic name of the DataStore.
It returns the name of the query tree.
It returns the name of the query tree.
Retrieves the NameDef corresponding to this PNameField
Gives the new NestedField
Gives the new NestedField
Gives the the fields which will be used to define groups.
Gives the the fields which will be used to define groups.
What is the status of the Field regarding null values (NullStatus).
Returns the value of the designated column
in the current row of this Tuple as a Java Object
There is no Java operator for belong.
There is no Java operator associated to a PName
Returns the String representing the operator in Java
There is no Java operator associated to a PName
Returns the array of OrderFields indicating how the result should be
ordered.
Returns the array of OrderFields indicating how the result should be
ordered.
Returns the array of OrderFields indicating how the result should be
ordered.
Returns the array of OrderFields indicating how the result should be
ordered.
Constructs an ArrayList containing the elements of the corresponding
path expression, excluding the initial FieldOperand.
Starting from an input ArrayList, adds the elements of the corresponding
path expression, excluding the initial FieldOperand.
Retrieves the RdbPrimitiveElementMapping of a field
Retrieves the name of the ParameterOperand containing the PNamingContext.
Retrieves the Operand representing the PNameCoder needed to decode a
pname.
Retrieves the prefetched tuple from this cache associated with this
index information, within the given caching context.
Retrieves the prefetched tuple from this cache associated with this
index information, within the given caching context.
It permits to reach the field before the nest operation.
Retrieves the primitive element corresponding to a field name of
a jorm object (class or generic class).
It give the fields wich will be projected
with the fields of the nestedField
Builds the qualified name of a RdbExpField.
Returns the associated QualifiedTables.
Returns the associated QualifiedTables.
Redefines getQueryFilter using the filter of the subquery.
Retrieves the filter associated to the QueryTree.
Retrieves the filter associated to the RbdQueryLeaf.
Retrieves the filter associated to the QueryTree.
Retrieves the filter associated to the QueryTree.
Returns the QueryNode to which the NodeEvaluator is attached.
Returns the QueryNode to which the NodeEvaluator is attached.
Returns the QueryNode to which the NodeEvaluator is attached.
Returns the QueryNode to which the NodeEvaluator is attached.
It retrieves the rdb adapter.
It retrieves the rdb adapter name.
It returns the jorm meta object Reference in case of this PNameField
represents a reference field in a jorm class.
Retrieves a Collection of ParameterOperand reuiqring in a given query
tree which the type is NAMING_CONTEXT.
No result (this is not evaluable).
Gets the operand in wich the result will be put in
Get the current row of the right TupleCollection
Get the current row of the right TupleCollection
Get the current row of the right TupleCollection
Get the current row of the right TupleCollection
Get the current row of the right TupleCollection
Get the current row of the right TupleCollection
This method is used when nesting data.
Retrieves the current row Number.
Retrieves the current row Number of this TupleCollection
Retrieves the current row Number.
Gives the List of rules in the configuration
Gives the List of rules in the configuration
Builds the SELECT clause of the query (without "SELECT ").
Builds the SELECT clause of the query (without "SELECT ").
Returns the value of the designated column in the current row of this Tuple
as a short of java programming language
Returns the value of the designated column
in the current row of this Tuple
as a Short in the java programming language
Returns the size of the current TupleStructure, ie the number of
Fields.
Give the number of the attribute in this Tuple object.
Returns the size of the current TupleStructure, ie the number of
Fields.
Returns the associated SQL queryn giving the list of SELECT fields
as an input parameter.
Returns the associated SQL queryn giving the list of SELECT fields
as an input parameter.
Builds and returns the SQL query as a String corresponding to the
current RdbExpQueryLeaf.
Returns the associated SQL query.
Returns the associated SQL query.
Returns the value of the designated column in the current row of this Tuple
as a java.lang.String of java programming language
Returns the value of the designated column
in the current row of this Tuple
as a String in java programming language
Returns the associated QualifiedTable.
Returns the associated QualifiedTable.
Returns the table name for the current QualifiedTable.
Returns the table name for the current QualifiedTable.
Retrieves the Jorm meta object of the Class represented by this
PNameField.
Returns the Tuple value of the current row of this TupleCollection object.
Returns the Tuple value of the current row of this TupleCollection object.
Returns the Tuple value of the designeted row of this TupleCollection object.
Returns the value of the designated row number of the TupleCollection
as a Tuple Object.
Returns the Tuple value of the designeted row of this TupleCollection object.
Returns the value of the designated column
in the current row of this Tuple
as a org.objectweb.medor object
Returns the TupleLoader currently associated with this QueryNode.
Methods inherited from QueryTree
Returns the TupleStructure associated to the QueryTree.
Returns the TupleStructure associated to the QueryTree.
Returns the TupleStructure associated to the QueryTree.
It retrieves the operation type of the current QueryNode.
Returns the field type, as a PType
It retrieves the operation type of the current QueryNode.
It retrieves the operation type of the current QueryNode.
It retrieves the operation type of the current QueryNode.
It retrieves the operation type of the current QueryNode.
Returns the JORM meta object corresponding to the JORM Field.
Returns the JORM meta object corresponding to the JORM Field.
It give the field wich will be de-grouped.
Returns the associated WrapperFactory.
This recursive method performs the real work of the rule.
This class groups together as a single RbdExpQueryLeaf the RdbQueryLeaves
working on the same data store.
Are objects of subclasses included.
The InCollection class is an operator testing whether the value of a
Field (the left operand, which is supposed to be a FieldOperand) is equal to
one of the elements of a collecton (the right Operand)
Contains ranges of attribute to be projected from the tuple resulting
of the concatenation of the tuples from the children QueryTrees.
Contains ranges of attribute to be projected from the tuple resulting
of the concatenation of the tuples from the children QueryTrees.
MEDOR: Middleware Enabling Distributed Object Requests
Copyright (C) 2001-2003 France Telecom R&D
Contact: alexandre.lefebvre@rd.francetelecom.com
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Creates the internal structure of the cache.
Insert the tuple T at the designated row number of the TupleCollection
Insert the tuple T at the last of this TupleCollection object
Invalidates the PrefetchBuffer referenced by the object.
Invalidates all the prefetched tuples that are associated with the given
caching connection context.
Invalidates all the prefetched tuples that are associated with the given
caching connection context.
Specialisation of MedorException for IO exceptions
Applies to navigation ending with a GenClassRef only.
Applies to navigation ending with a GenClassRef only.
Checks whether the current QTypeTuple is a subtype of another PType.
Get the value of the boolean indicating whether cache is used for
materialization of intermediate results at evaluation time.
Get the value of the boolean indicating whether cache is used for
materialization of intermediate results at evaluation time.
Are insertions possible (is policy dependent: example may require
to free the cache before insertion).
Checks whether the current DataStore is capable of performing different
types of operations.
If the current PNameField represents a PName of a Jorm class or genclass,
this field is equals to 'true'.
It returns 'true' when this PNameField represents the identifier of a jorm
class or a jorm genclass.
Can be considered as compiled, since nothing to do.
IsEmpty operates on an Expression which must be of a TupleCollection type,
or a GenClassRef.
Tell whether the current TupleCollection Object is empty or no.
Tell whether the current TupleCollection Object is empty or no.
This fiedl returns 'true' if the current PNameField has been built to
describe the PName identifier of a GenClass or the PName of the GenClass
element.
It returns 'true' if the current PNameField has been built to
describe the PName identifier of a GenClass or the PName of the GenClass
element.
Indicates whether the cursor is on the last row of this TupleCollection object.
Checks whether the current row is the last row.
Indicates whether the cursor is on the last row of this TupleCollection object.
Gets the value of the boolean indicating whether a limited range of
evaluation is performed.
Gets the value of the boolean indicating whether a limited range of
evaluation is performed.
IsNull operates on an Expression.
IsNull() - constructor for class org.objectweb.medor.filter.lib.
IsNull This implementation of the CalculatedParameterOperand interface checks if
a PName is null.
Indicates whether a row of nulls should be inserted for the
given child if the filter condition fails for all rows in
that child.
Get the value of the boolean indicating whether parallel evaluation
of sub-QueryTrees is performed.
Get the value of the boolean indicating whether parallel evaluation
of sub-QueryTrees is performed.
Returns 'true' if the current path designes a field which is a
reference.
A simple example of an implementation of this method will tests equality
between DataStore name only.
Two ConnectionFactoryDataStore with the same connection factory are equals.
Checks whether the current DataStore object represents the same data
store as another DataStore object.
It evaluates if inside an expression all QueryTreeField referenced in
FieldOperands come from the same QueryTree.
Is the current query leaf a subquery (in particular for the case of
aggregates).
This class manage creation the iteratifs NodeEvaluators corresponding to
QueryNodes.
This classe is a TupleCollection result of a Select + Project Operations.
Set a boolean for declaring the use of a cache for intermediate
materialization of results at evaluation time.
Set a boolean for declaring the use of a cache for intermediate
materialization of results at evaluation time.
This method allow stop or no inserting objetcs in the cache.
Sets the name of the data store client.
Sets the descendant order.
Sets the descendant order.
Sets whether the aggregate operator should be
Sets whether the aggregate operator should be
Indicates whether evaluating the QueryTree should return unique results
(duplicate elimination) or not.
Indicates whether evaluating the QueryTree should return unique results
(duplicate elimination) or not.
Indicates whether evaluating the QueryTree should return unique results
(duplicate elimination) or not.
Indicates whether evaluating the QueryTree should return unique results
(duplicate elimination) or not.
Sets the field of the clause part.
Sets the field of the clause part.
This method inherited from QueryIndexGenerator.
This method sets the first operand or operator to this expression object.
Indicates whether the current RdbExpQueryLeaf is a subquery of another
Rdb query leaf (in particular in the case of subqueries).
Assigns the JormExtent and calculates the fields 'tables'
and 'joins'.
It assigns the map used in this rule.
Sets the maximum number of tuples to be returned by the evaluation in
the case of a range-limited evaluation.
Sets the maximum number of tuples to be returned by the evaluation in
the case of a range-limited evaluation.
Sets the value for the rank of the first tuple to be returned by the
evaluation in the case of a range-limited evaluation.
Sets the value for the rank of the first tuple to be returned by the
evaluation in the case of a range-limited evaluation.
Sets the field name to index association map.
Sets the OrderBy array of OrderFields.
Sets the OrderBy array of OrderFields.
Sets the OrderBy array of OrderFields.
Sets the OrderBy array of OrderFields.
Set a boolean for declaring parallel evaluation of sub-QueryTrees.
Set a boolean for declaring parallel evaluation of sub-QueryTrees.
Associates a PrefetchBuffer to be filled by the collection computed by
this evaluator.
Associates a PrefetchBuffer to be filled by the collection computed by
this evaluator.
Associates a PrefetchBuffer to be filled by the collection computed by
this evaluator.
Associates a PrefetchBuffer to be filled by the collection computed by
this evaluator.
The setQueryFilter method will be overwritten for implementations
which do not support the operation.
Sets the filter associated to the RbdQueryLeaf.
The setQueryFilter method will be overwritten for implementations
which do not support the operation.
Sets the filter associated to the FilteredQueryTree.
The setQueryFilter method will be overwritten for implementations
which do not support the operation.
Sets the filter associated to the FilteredQueryTree.
The setQueryFilter method will be overwritten for implementations
which do not support the operation.
The setQueryFilter method will be overwritten for implementations
which do not support the operation.
Sets the filter associated to the FilteredQueryTree.
Sets the QueryLeaf to which the RdbExpField is associated
Sets the QueryLeaf to which the RdbExpField is associated
It assigns the rdb adapter.
It assignes the rdb adapter name.
This method configures the QueryRewriter using a RuleConfiguration.
This method configures the QueryRewriter using a RuleConfiguration.
This method sets the second operand or operator to this expression object.
Associates the RdbExpField with the QualifiedTable.
Associates the RdbExpField with the QualifiedTable.
This method sets the third operand or operator to this expression object.
Asscoiates a tuple collection to this PrefetchBuffer.
Associates a TupleLoader with this QueryNode.
setValue allows changing the value of the collection.
Indicates whether the current Extent should also contain objects from the
subclasses.
Indicates whether the current Extent should also contain objects from the
subclasses.
A SinglePName is an Operator representing the construction of a PName
from a NamingContext and a single Field.
Constructs a SinglePName from a ParameterOperand representing the
naming context, a FieldOperand, and the PType of the corresponding
PName.
Sum - class org.objectweb.medor.filter.lib.
Sum Sum aggregate function.