org.geotools.data.mysql
Class MySQLSQLBuilder

java.lang.Object
  extended by org.geotools.data.jdbc.GeoAPISQLBuilder
      extended by org.geotools.data.mysql.MySQLSQLBuilder
All Implemented Interfaces:
SQLBuilder

public class MySQLSQLBuilder
extends GeoAPISQLBuilder

A MySQL-specific instance of GeoAPISQLBuilder, 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.GeoAPISQLBuilder
accessor, encoder, ft
 
Constructor Summary
MySQLSQLBuilder(FilterToSQL encoder)
          Deprecated. please use MySQLSQLBuilder(encoder, ft)
MySQLSQLBuilder(FilterToSQL encoder, org.opengis.feature.simple.SimpleFeatureType ft)
           
 
Method Summary
 boolean isWKBEnabled()
          Returns true if the WKB format is used to transfer geometries, false otherwise
 void setWKBEnabled(boolean enabled)
          If turned on, WKB will be used to transfer geometry data instead of WKT
 void sqlColumns(java.lang.StringBuffer sql, FIDMapper mapper, org.opengis.feature.type.AttributeDescriptor[] attributes)
          Produces the select information required.
 
Methods inherited from class org.geotools.data.jdbc.GeoAPISQLBuilder
buildSQLQuery, buildSQLQuery, encode, encode, getFidValidator, getPostQueryFilter, getPreQueryFilter, isForce2D, setHints, splitFilter, sqlFrom, sqlGeometryColumn, sqlOrderBy, sqlOrderBy, sqlWhere
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLSQLBuilder

public MySQLSQLBuilder(FilterToSQL encoder)
Deprecated. please use MySQLSQLBuilder(encoder, ft)

Parameters:
encoder -

MySQLSQLBuilder

public MySQLSQLBuilder(FilterToSQL encoder,
                       org.opengis.feature.simple.SimpleFeatureType ft)
Method Detail

sqlColumns

public void sqlColumns(java.lang.StringBuffer sql,
                       FIDMapper mapper,
                       org.opengis.feature.type.AttributeDescriptor[] 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 GeoAPISQLBuilder
Parameters:
sql -
mapper -
attributes -

isWKBEnabled

public boolean isWKBEnabled()
Returns true if the WKB format is used to transfer geometries, false otherwise


setWKBEnabled

public void setWKBEnabled(boolean enabled)
If turned on, WKB will be used to transfer geometry data instead of WKT

Parameters:
enabled -


Copyright © 1996-2010 Geotools. All Rights Reserved.