|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.jdbc.DefaultSQLBuilder org.geotools.data.db2.DB2SQLBuilder
A DB2-specific subclass of DefaultSQLBuilder, which supports DB2 Spatial Extender geometry datatypes.
Field Summary |
Fields inherited from class org.geotools.data.jdbc.DefaultSQLBuilder |
encoder |
Constructor Summary | |
DB2SQLBuilder(SQLEncoder encoder,
java.lang.String tableSchema,
java.lang.String tableName)
Creates a DB2SQLBuilder that will provide a table schema to qualify table names. |
Method Summary | |
java.lang.String |
buildSQLBoundsQuery(java.lang.String typeName,
AttributeType geomAttr,
Filter filter)
Builds the SQL query to get the bounds (min-max coordinate values) of a geometry column for a given filter. |
void |
sqlFrom(java.lang.StringBuffer sql,
java.lang.String typeName)
Construct the FROM clause for a feature type. |
void |
sqlGeometryColumn(java.lang.StringBuffer sql,
AttributeType geomAttribute)
Generates the select column specification for a DB2 geometry column. |
Methods inherited from class org.geotools.data.jdbc.DefaultSQLBuilder |
buildSQLQuery, getPostQueryFilter, getPreQueryFilter, sqlColumns, sqlWhere |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DB2SQLBuilder(SQLEncoder encoder, java.lang.String tableSchema, java.lang.String tableName)
It would be better if the table schema was managed by FeatureTypeHandler or FeatureType.
encoder
- an SQLEncodertableSchema
- table schema to qualify table namestableName
- the table name to be used by this SQL builderMethod Detail |
public void sqlGeometryColumn(java.lang.StringBuffer sql, AttributeType geomAttribute)
Overrides sqlGeometryColumn in DefaultSQLBuilder
sqlGeometryColumn
in class DefaultSQLBuilder
sql
- A StringBuffer that the column specification can be appended
to.geomAttribute
- An AttributeType for a geometry attributepublic void sqlFrom(java.lang.StringBuffer sql, java.lang.String typeName)
This method could be promoted to DefaultSQLBuilder if the table schema was propagated up.
Overrides sqlFrom in DefaultSQLBuilder
sqlFrom
in interface SQLBuilder
sqlFrom
in class DefaultSQLBuilder
sql
- StringBuffer to be appended totypeName
- Name of the type (table)public java.lang.String buildSQLBoundsQuery(java.lang.String typeName, AttributeType geomAttr, Filter filter) throws SQLEncoderException
typeName
- the feature type name.geomAttr
- the geometry attribute.filter
- the filter expression.
SQLEncoderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |