org.geotools.filter
Class SQLEncoderSDE

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

public class SQLEncoderSDE
extends SQLEncoder
implements FilterVisitor

Encodes an attribute filter into a SQL WHERE statement for arcsde.

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 here and the spatial filters (or spatial constraints, in SDE vocabulary) provided by GeometryEncoderSDE; mirroring the java SDE api approach for easy programing

Author:
Chris Holmes, TOPP, Gabriel Rold?n
See Also:
org.geotools.data.sde.GeometryEncoderSDE

Field Summary
 
Fields inherited from class org.geotools.filter.SQLEncoder
mapper, out
 
Constructor Summary
SQLEncoderSDE()
          Creates a new SQLEncoderSDE object.
SQLEncoderSDE(com.esri.sde.sdk.client.SeLayer layer)
           
 
Method Summary
protected  FilterCapabilities createFilterCapabilities()
          Overrides the superclass implementation to indicate that we support pushing FeatureId filters down into the data store.
 void encode(java.io.Writer out, Filter filter)
          overriden just to avoid the "WHERE" keyword
 void setLayer(com.esri.sde.sdk.client.SeLayer layer)
          Deprecated. remove when the old data api dissapear
 void visit(AttributeExpression expression)
          Overrides the superclass implementation to fully qualify
 void visit(FidFilter filter)
          This only exists the fulfill the interface - unless There is a way of determining the FID column in the database...
 
Methods inherited from class org.geotools.filter.SQLEncoder
encode, escapeName, getCapabilities, getColnameEscape, setColnameEscape, setFIDMapper, setSqlNameEscape, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitLiteralGeometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.filter.FilterVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 

Constructor Detail

SQLEncoderSDE

public SQLEncoderSDE()
Creates a new SQLEncoderSDE object.


SQLEncoderSDE

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

visit

public void visit(AttributeExpression expression)
           throws java.lang.RuntimeException
Overrides the superclass implementation to fully qualify

Specified by:
visit in interface FilterVisitor
Overrides:
visit in class SQLEncoder
Parameters:
expression - DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!

createFilterCapabilities

protected FilterCapabilities createFilterCapabilities()
Overrides the superclass implementation to indicate that we support pushing FeatureId filters down into the data store.

Overrides:
createFilterCapabilities in class SQLEncoder
Returns:
DOCUMENT ME!

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!

encode

public void encode(java.io.Writer out,
                   Filter filter)
            throws SQLEncoderException
overriden just to avoid the "WHERE" keyword

Overrides:
encode in class SQLEncoder
Parameters:
out - DOCUMENT ME!
filter - DOCUMENT ME!
Throws:
SQLEncoderException - 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
Overrides:
visit in class SQLEncoder
Parameters:
filter - the Fid Filter.
Throws:
java.lang.RuntimeException - DOCUMENT ME!
See Also:
SQLEncoder.visit(org.geotools.filter.FidFilter)


Copyright © GeoTools. All Rights Reserved.