org.jpox.store.expression.spatial
Interface ExpressionSpatialAdapter


public interface ExpressionSpatialAdapter

Allow different datastores to provide their own representation of Spatial expresssions. The instantiation of this adapter is made using a constructor taking the DatastoreAdapter as argument, however, if this constructor is not available, the default constructor is invoked

Version:
$Revision: 1.1 $

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 (CONTAINS 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 expr)
          Creates a spatial expression from a literal.
 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).
 

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 (CONTAINS 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 expr)
Creates a spatial expression from a literal.

Parameters:
expr - the literal expression representing the geometry
Returns:
A Spatial Expression

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.