org.geotools.data.mysql
Class MySQLSQLBuilder

java.lang.Object
  extended byorg.geotools.data.jdbc.DefaultSQLBuilder
      extended byorg.geotools.data.mysql.MySQLSQLBuilder
All Implemented Interfaces:
SQLBuilder

public class MySQLSQLBuilder
extends DefaultSQLBuilder

A MySQL-specific instance of DefaultSQLBuilder, which supports MySQL 4.1's geometric datatypes.

Author:
Gary Sheppard garysheppard@psu.edu, Andrea Aime aaime@users.sourceforge.net

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.DefaultSQLBuilder
encoder
 
Constructor Summary
MySQLSQLBuilder(SQLEncoder encoder)
           
 
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

MySQLSQLBuilder

public MySQLSQLBuilder(SQLEncoder encoder)
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.