|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.persistence.expressions.spatial.SpatialExpressionFactory
public class SpatialExpressionFactory
This class is used to construct expressions that use Oracle Spatial operators
ExpressionBuilder builder = new ExpressionBuilder(); Expression withinDistance = SpatialExpressions.withinDistance(myJGeometry1, myJGeometry2, "DISTANCE=10"); session.readAllObjects(GeometryHolder.class, withinDistance);
| Constructor Summary | |
|---|---|
SpatialExpressionFactory()
|
|
| Method Summary | |
|---|---|
static Expression |
filter(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
PUBLIC: Return an Expression for the MDSYS.SDO_FILTER Spatial Operator on the Oracle Database Use of this operator requires the Java spatial classes SpatialParameters parameters = new SpatialParameters(); parameters.setQueryType(QueryType.WINDOW); Expression selectCriteria = SpatialExpressions.filter(jGeometry1, jGeometry2, parameters); |
static Expression |
getSpatialExpression(int operator,
Expression geom1,
java.lang.Object geom2,
java.lang.String params)
INTERNAL: A utility method to build a SpatialExpression |
static Expression |
nearestNeighbor(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
PUBLIC: Return an Expression for the MDSYS.SDO_NN Spatial Operator on the Oracle Database Use of this operator requires the Java spatial classes SpatialParameters parameters = new SpatialParameters(); parameters.setUnit(Units.M); Expression selectCriteria = SpatialExpressions.nearestNeighbor(jGeometry1, jGeometry2, parameters); |
static Expression |
relate(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
PUBLIC: Return an Expression for the MDSYS.MDSYS.SDO_RELATE Spatial Operator on the Oracle Database Use of this operator requires the Java spatial classes SpatialParameters parameters = new SpatialParameters(); parameters..setMask(Mask.ANYINTERACT).setQueryType(QueryType.WINDOW); Expression selectCriteria = SpatialExpressions.relate(jGeometry1, jGeometry2, parameters); |
static Expression |
withinDistance(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
PUBLIC: Return an Expression for the MDSYS.SDO_WITHIN_DISTANCE Spatial Operator on the Oracle Database Use of this expression requires the Java spatial classes SpatialParameters parameters = new SpatialParameters(); parameters.setDistance(10d); Expression selectCriteria = SpatialExpressions.withinDistance(jGeometry1, jGeometry2, parameters); |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialExpressionFactory()
| Method Detail |
|---|
public static Expression withinDistance(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
SpatialParameters parameters = new SpatialParameters(); parameters.setDistance(10d); Expression selectCriteria = SpatialExpressions.withinDistance(jGeometry1, jGeometry2, parameters);
geom1 - an Expression representing a JGeometryObjectgeom2 - a JGeometryObject or an Expression representing a JGeometryObjectparams - a SpatialParameters object configured with the parameters to the call
public static Expression relate(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
SpatialParameters parameters = new SpatialParameters(); parameters..setMask(Mask.ANYINTERACT).setQueryType(QueryType.WINDOW); Expression selectCriteria = SpatialExpressions.relate(jGeometry1, jGeometry2, parameters);
geom1 - an Expression representing a JGeometryObjectgeom2 - a JGeometryObject or an Expression representing a JGeometryObjectparams - a SpatialParameters object configured with the parameters to the call
public static Expression filter(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
SpatialParameters parameters = new SpatialParameters(); parameters.setQueryType(QueryType.WINDOW); Expression selectCriteria = SpatialExpressions.filter(jGeometry1, jGeometry2, parameters);
geom1 - an Expression representing a JGeometryObjectgeom2 - a JGeometryObject or an Expression representing a JGeometryObjectparams - a SpatialParameters object configured with the parameters to the call
public static Expression nearestNeighbor(Expression geom1,
java.lang.Object geom2,
SpatialParameters params)
SpatialParameters parameters = new SpatialParameters(); parameters.setUnit(Units.M); Expression selectCriteria = SpatialExpressions.nearestNeighbor(jGeometry1, jGeometry2, parameters);
geom1 - an Expression representing a JGeometryObjectgeom2 - a JGeometryObject or an Expression representing a JGeometryObjectparams - a SpatialParameters object configured with the parameters to the call
public static Expression getSpatialExpression(int operator,
Expression geom1,
java.lang.Object geom2,
java.lang.String params)
operator - the ordinal of the operatorgeom1 - geom2 - params -
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||