org.geotools.data.geometryless
Class GeometrylessSQLBuilder

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

public class GeometrylessSQLBuilder
extends DefaultSQLBuilder

A Geometryless-specific instance of DefaultSQLBuilder, which supports geometries created form standard data types

Author:
Rob Atkinson rob@socialchange.net.au

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.DefaultSQLBuilder
encoder
 
Constructor Summary
GeometrylessSQLBuilder(SQLEncoder encoder)
           
GeometrylessSQLBuilder(SQLEncoder encoder, java.lang.String x, java.lang.String y)
           
 
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

GeometrylessSQLBuilder

public GeometrylessSQLBuilder(SQLEncoder encoder)

GeometrylessSQLBuilder

public GeometrylessSQLBuilder(SQLEncoder encoder,
                              java.lang.String x,
                              java.lang.String y)
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 -
attributes -
mapper - FIDMapper to provide the name(s) of the FID columns
See Also:
postgisDataStore.SQLBuilder#sqlColumns(java.lang.StringBuffer, postgisDataStore.FIDMapper.FIDMapper, org.geotools.feature.AttributeType[])


Copyright © GeoTools. All Rights Reserved.