org.geotools.filter
Class GeometryEncoderSDE

java.lang.Object
  extended byorg.geotools.filter.GeometryEncoderSDE
All Implemented Interfaces:
FilterVisitor

public class GeometryEncoderSDE
extends java.lang.Object
implements FilterVisitor

Encodes the geometry related parts of a filter into a set of SeFilter objects and provides a method to get the resulting filters suitable to set up an SeQuery's spatial constraints.

Although not all filters support is coded yet, the strategy to filtering queries for ArcSDE datasources is separated in two parts, the SQL where clause construction, provided by SQLEncoderSDE and the spatial filters (or spatial constraints, in SDE vocabulary) provided here; mirroring the java SDE api approach

Author:
Gabriel Rold?n

Constructor Summary
GeometryEncoderSDE()
           
GeometryEncoderSDE(com.esri.sde.sdk.client.SeLayer layer)
           
 
Method Summary
 void encode(Filter filter)
          overriden just to avoid the "WHERE" keyword
static FilterCapabilities getCapabilities()
          DOCUMENT ME!
 com.esri.sde.sdk.client.SeFilter[] getSpatialFilters()
          DOCUMENT ME!
 void setLayer(com.esri.sde.sdk.client.SeLayer layer)
          Deprecated. remove when the old data api dissapear
 void visit(AttributeExpression expression)
          DOCUMENT ME!
 void visit(BetweenFilter filter)
          DOCUMENT ME!
 void visit(CompareFilter filter)
          DOCUMENT ME!
 void visit(Expression expression)
          DOCUMENT ME!
 void visit(FidFilter filter)
          This only exists the fulfill the interface - unless There is a way of determining the FID column in the database...
 void visit(Filter filter)
          DOCUMENT ME!
 void visit(FunctionExpression expression)
          DOCUMENT ME!
 void visit(GeometryFilter filter)
          DOCUMENT ME!
 void visit(LikeFilter filter)
          DOCUMENT ME!
 void visit(LiteralExpression expression)
          DOCUMENT ME!
 void visit(LogicFilter filter)
          DOCUMENT ME!
 void visit(MathExpression expression)
          DOCUMENT ME!
 void visit(NullFilter filter)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryEncoderSDE

public GeometryEncoderSDE()

GeometryEncoderSDE

public GeometryEncoderSDE(com.esri.sde.sdk.client.SeLayer layer)
Method Detail

setLayer

public void setLayer(com.esri.sde.sdk.client.SeLayer layer)
Deprecated. remove when the old data api dissapear

DOCUMENT ME!

Parameters:
layer - DOCUMENT ME!

getCapabilities

public static FilterCapabilities getCapabilities()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getSpatialFilters

public com.esri.sde.sdk.client.SeFilter[] getSpatialFilters()
DOCUMENT ME!

Returns:
DOCUMENT ME!

encode

public void encode(Filter filter)
            throws GeometryEncoderException
overriden just to avoid the "WHERE" keyword

Parameters:
filter - DOCUMENT ME!
Throws:
GeometryEncoderException - DOCUMENT ME!

visit

public void visit(GeometryFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!

visit

public void visit(FidFilter filter)
This only exists the fulfill the interface - unless There is a way of determining the FID column in the database...

Specified by:
visit in interface FilterVisitor
Parameters:
filter - the Fid Filter.

visit

public void visit(Filter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(BetweenFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(CompareFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(LikeFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(LogicFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(NullFilter filter)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
filter - DOCUMENT ME!

visit

public void visit(AttributeExpression expression)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
expression - DOCUMENT ME!

visit

public void visit(Expression expression)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
expression - DOCUMENT ME!

visit

public void visit(LiteralExpression expression)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
expression - DOCUMENT ME!

visit

public void visit(MathExpression expression)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
expression - DOCUMENT ME!

visit

public void visit(FunctionExpression expression)
DOCUMENT ME!

Specified by:
visit in interface FilterVisitor
Parameters:
expression - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.