org.jpox.store.expression.spatial
Class SpatialExpression

java.lang.Object
  extended byorg.jpox.store.expression.ScalarExpression
      extended byorg.jpox.store.expression.spatial.SpatialExpression

public class SpatialExpression
extends org.jpox.store.expression.ScalarExpression

Representation of Spatial functions in JDOQL

Version:
$Revision: 1.1 $

Nested Class Summary
 
Nested classes inherited from class org.jpox.store.expression.ScalarExpression
org.jpox.store.expression.ScalarExpression.DyadicOperator, org.jpox.store.expression.ScalarExpression.ExpressionList, org.jpox.store.expression.ScalarExpression.FieldExpression, org.jpox.store.expression.ScalarExpression.IllegalArgumentTypeException, org.jpox.store.expression.ScalarExpression.IllegalOperationException, org.jpox.store.expression.ScalarExpression.MethodInvocationException, org.jpox.store.expression.ScalarExpression.MonadicOperator, org.jpox.store.expression.ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.jpox.store.expression.ScalarExpression
aliasIdentifier, expressionList, FILTER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te
 
Constructor Summary
SpatialExpression(org.jpox.store.expression.QueryExpression qs)
           
SpatialExpression(java.lang.String functionName, java.util.List args)
          Generates statement as e.g.
 
Method Summary
 org.jpox.store.expression.BooleanExpression containsMethod(org.jpox.store.expression.ScalarExpression leftExpr, org.jpox.store.expression.ScalarExpression rightExpr)
          Evaluates if the leftExpr geometry contains the rightExpr geometry (OVERLAPBDYDISJOINT or OVERLAPBDYINTERSECT topological relationship).
 org.jpox.store.expression.BooleanExpression equalsMethod(org.jpox.store.expression.ScalarExpression leftExpr, org.jpox.store.expression.ScalarExpression rightExpr)
          Evaluates if the leftExpr geometry equals the rightExpr geometry (EQUALS topological relationship).
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1)
          Creates a spatial expression from a literal.
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1, org.jpox.store.expression.ScalarExpression expr2)
          Creates a spatial expression from a literal.
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1, org.jpox.store.expression.ScalarExpression expr2, org.jpox.store.expression.ScalarExpression expr3)
          Creates a spatial expression from a literal.
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1, org.jpox.store.expression.ScalarExpression expr2, org.jpox.store.expression.ScalarExpression expr3, org.jpox.store.expression.ScalarExpression expr4)
          Creates a spatial expression from a literal.
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1, org.jpox.store.expression.ScalarExpression expr2, org.jpox.store.expression.ScalarExpression expr3, org.jpox.store.expression.ScalarExpression expr4, org.jpox.store.expression.ScalarExpression expr5)
          Creates a spatial expression from a literal.
 SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation, org.jpox.store.expression.ScalarExpression expr1, org.jpox.store.expression.ScalarExpression expr2, org.jpox.store.expression.ScalarExpression expr3, org.jpox.store.expression.ScalarExpression expr4, org.jpox.store.expression.ScalarExpression expr5, org.jpox.store.expression.ScalarExpression expr6)
          Creates a spatial expression from a literal.
 org.jpox.store.expression.BooleanExpression insideMethod(org.jpox.store.expression.ScalarExpression leftExpr, org.jpox.store.expression.ScalarExpression rightExpr)
          Evaluates if the leftExpr geometry is inside the rightExpr geometry (INSIDE topological relationship).
 org.jpox.store.expression.BooleanExpression overlapsMethod(org.jpox.store.expression.ScalarExpression leftExpr, org.jpox.store.expression.ScalarExpression rightExpr)
          Evaluates if the leftExpr geometry overlaps the rightExpr geometry (OVERLAPBDYDISJOINT or OVERLAPBDYINTERSECT topological relationship).
 org.jpox.store.expression.BooleanExpression touchesMethod(org.jpox.store.expression.ScalarExpression leftExpr, org.jpox.store.expression.ScalarExpression rightExpr)
          Evaluates if the leftExpr geometry touches the rightExpr geometry (TOUCH topological relationship).
 
Methods inherited from class org.jpox.store.expression.ScalarExpression
accessField, add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpatialExpression

public SpatialExpression(org.jpox.store.expression.QueryExpression qs)
Parameters:
qs - The query statement

SpatialExpression

public SpatialExpression(java.lang.String functionName,
                         java.util.List args)
Generates statement as e.g. FUNCTION_NAME(arg[,argN])

Parameters:
functionName -
args - ScalarExpression list
Method Detail

insideMethod

public org.jpox.store.expression.BooleanExpression insideMethod(org.jpox.store.expression.ScalarExpression leftExpr,
                                                                org.jpox.store.expression.ScalarExpression rightExpr)
Evaluates if the leftExpr geometry is inside the rightExpr geometry (INSIDE topological relationship).

Parameters:
leftExpr - the searched geometry
rightExpr - the geometry
Returns:
true expression if leftExpr is inside the rightExpr

touchesMethod

public org.jpox.store.expression.BooleanExpression touchesMethod(org.jpox.store.expression.ScalarExpression leftExpr,
                                                                 org.jpox.store.expression.ScalarExpression rightExpr)
Evaluates if the leftExpr geometry touches the rightExpr geometry (TOUCH topological relationship).

Parameters:
leftExpr - the geometry
rightExpr - the geometry
Returns:
true expression if leftExpr touches the rightExpr

overlapsMethod

public org.jpox.store.expression.BooleanExpression overlapsMethod(org.jpox.store.expression.ScalarExpression leftExpr,
                                                                  org.jpox.store.expression.ScalarExpression rightExpr)
Evaluates if the leftExpr geometry overlaps the rightExpr geometry (OVERLAPBDYDISJOINT or OVERLAPBDYINTERSECT topological relationship).

Parameters:
leftExpr - the geometry
rightExpr - the geometry
Returns:
true expression if leftExpr overlaps the rightExpr

containsMethod

public org.jpox.store.expression.BooleanExpression containsMethod(org.jpox.store.expression.ScalarExpression leftExpr,
                                                                  org.jpox.store.expression.ScalarExpression rightExpr)
Evaluates if the leftExpr geometry contains the rightExpr geometry (OVERLAPBDYDISJOINT or OVERLAPBDYINTERSECT topological relationship).

Parameters:
leftExpr - the geometry
rightExpr - the geometry
Returns:
true expression if leftExpr contains the rightExpr

equalsMethod

public org.jpox.store.expression.BooleanExpression equalsMethod(org.jpox.store.expression.ScalarExpression leftExpr,
                                                                org.jpox.store.expression.ScalarExpression rightExpr)
Evaluates if the leftExpr geometry equals the rightExpr geometry (EQUALS topological relationship).

Parameters:
leftExpr - the geometry
rightExpr - the geometry
Returns:
true expression if leftExpr equals the rightExpr

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
Returns:
A Spatial Expression

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1,
                                        org.jpox.store.expression.ScalarExpression expr2)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
expr2 - the 2nd argument
Returns:
A Spatial Expression

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1,
                                        org.jpox.store.expression.ScalarExpression expr2,
                                        org.jpox.store.expression.ScalarExpression expr3)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
expr2 - the 2nd argument
expr3 - the 3th argument
Returns:
A Spatial Expression

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1,
                                        org.jpox.store.expression.ScalarExpression expr2,
                                        org.jpox.store.expression.ScalarExpression expr3,
                                        org.jpox.store.expression.ScalarExpression expr4)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
expr2 - the 2nd argument
expr3 - the 3th argument
expr4 - the 4th argument
Returns:
A Spatial Expression

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1,
                                        org.jpox.store.expression.ScalarExpression expr2,
                                        org.jpox.store.expression.ScalarExpression expr3,
                                        org.jpox.store.expression.ScalarExpression expr4,
                                        org.jpox.store.expression.ScalarExpression expr5)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
expr2 - the 2nd argument
expr3 - the 3th argument
expr4 - the 4th argument
expr5 - the 5th argument
Returns:
A Spatial Expression

geometryMethod

public SpatialExpression geometryMethod(org.jpox.store.expression.ScalarExpression operation,
                                        org.jpox.store.expression.ScalarExpression expr1,
                                        org.jpox.store.expression.ScalarExpression expr2,
                                        org.jpox.store.expression.ScalarExpression expr3,
                                        org.jpox.store.expression.ScalarExpression expr4,
                                        org.jpox.store.expression.ScalarExpression expr5,
                                        org.jpox.store.expression.ScalarExpression expr6)
Creates a spatial expression from a literal.

Parameters:
operation - the operation expression
expr1 - the 1st argument
expr2 - the 2nd argument
expr3 - the 3th argument
expr4 - the 4th argument
expr5 - the 5th argument
expr6 - the 6th argument
Returns:
A Spatial Expression


Copyright © 2003-2007 Java Persistent Objects (JPOX). All Rights Reserved.