org.geotools.data.geometryless
Class BBOXSQLBuilder

java.lang.Object
  extended byorg.geotools.data.jdbc.DefaultSQLBuilder
      extended byorg.geotools.data.geometryless.BBOXSQLBuilder
All Implemented Interfaces:
SQLBuilder

public class BBOXSQLBuilder
extends DefaultSQLBuilder

A an extension of DefaultSQLBuilder, which supports point geometries that are specified with x,y columns

Version:
$Id: BBOXSQLBuilder.java 17700 2006-01-22 23:30:39Z desruisseaux $
Author:
Chris Holmes, TOPP

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.DefaultSQLBuilder
encoder
 
Constructor Summary
BBOXSQLBuilder(SQLEncoder encoder, java.lang.String minx, java.lang.String miny, java.lang.String maxx, java.lang.String maxy)
           
 
Method Summary
 void sqlColumns(java.lang.StringBuffer sql, FIDMapper mapper, AttributeType[] attributes)
          Produces the select information required.
 
Methods inherited from class org.geotools.data.jdbc.DefaultSQLBuilder
buildSQLQuery, getPostQueryFilter, getPreQueryFilter, sqlFrom, sqlGeometryColumn, sqlWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBOXSQLBuilder

public BBOXSQLBuilder(SQLEncoder encoder,
                      java.lang.String minx,
                      java.lang.String miny,
                      java.lang.String maxx,
                      java.lang.String maxy)
Method Detail

sqlColumns

public void sqlColumns(java.lang.StringBuffer sql,
                       FIDMapper mapper,
                       AttributeType[] attributes)
Produces the select information required.

The featureType, if known, is always requested.

sql: featureID (,attributeColumn)

We may need to provide AttributeReaders with a hook so they can request a wrapper function.

Specified by:
sqlColumns in interface SQLBuilder
Overrides:
sqlColumns in class DefaultSQLBuilder
Parameters:
sql -
mapper -
attributes -
See Also:
postgisDataStore.SQLBuilder#sqlColumns(java.lang.StringBuffer, postgisDataStore.FIDMapper.FIDMapper, org.geotools.feature.AttributeType[])


Copyright © GeoTools. All Rights Reserved.