| java.lang.Object org.geotools.filter.SQLEncoder org.geotools.filter.SQLEncoderHsql
SQLEncoderHsql | public class SQLEncoderHsql extends SQLEncoder implements org.geotools.filter.FilterVisitor(Code) | | Encodes a filter into a SQL WHERE statement for HSQL. This class adds
the ability to turn geometry filters into sql statements if they are
bboxes.
Based on the SQLEncoderMysql
author: Chris Holmes, TOPP author: Debasish Sahu, debasish.sahu@rmsi.com author: Amr Alam |
Constructor Summary | |
public | SQLEncoderHsql() Empty constructor TODO: rethink empty constructor, as BBOXes _need_ an
SRID, must make client set it somehow. | public | SQLEncoderHsql(int srid) |
SQLEncoderHsql | public SQLEncoderHsql()(Code) | | Empty constructor TODO: rethink empty constructor, as BBOXes _need_ an
SRID, must make client set it somehow. Maybe detect when encode is
called?
|
SQLEncoderHsql | public SQLEncoderHsql(int srid)(Code) | | |
setDefaultGeometry | public void setDefaultGeometry(String name)(Code) | | Sets the default geometry, so that filters with null for one of their
expressions can assume that the default geometry is intended.
Parameters: name - the name of the default geometry Attribute. |
setSRID | public void setSRID(int srid)(Code) | | Sets a spatial reference system ESPG number, so that the geometry can be
properly encoded for postgis. If geotools starts actually creating
geometries with valid srids then this method will no longer be needed.
Parameters: srid - the integer code for the EPSG spatial reference system. |
visitLiteralGeometry | public void visitLiteralGeometry(LiteralExpression expression) throws IOException(Code) | | Checks to see if the literal is a geometry, and encodes it if it is, if
not just sends to the parent class.
Parameters: expression - the expression to visit and encode. throws: IOException - for IO exception (need a better error) |
|
|