|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.DefaultSQLBuilder
Provides ...
| Field Summary | |
protected SQLEncoder |
encoder
|
| Constructor Summary | |
DefaultSQLBuilder()
|
|
DefaultSQLBuilder(SQLEncoder encoder)
DOCUMENT ME! |
|
| Method Summary | |
java.lang.String |
buildSQLQuery(java.lang.String typeName,
java.lang.String fidColumnName,
AttributeType[] attrTypes,
Filter filter)
Makes an SQL Select statement. |
Filter |
getPostQueryFilter(Filter filter)
Returns the Filter required for post processing. |
Filter |
getPreQueryFilter(Filter filter)
|
void |
sqlColumns(java.lang.StringBuffer sql,
java.lang.String fidColumnName,
AttributeType[] attributes)
Produces the select information required. |
void |
sqlFrom(java.lang.StringBuffer sql,
java.lang.String typeName)
Consutrcts FROM clause for featureType |
void |
sqlWhere(java.lang.StringBuffer sql,
Filter preFilter)
Constructs WHERE clause, if needed, for FILTER. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected SQLEncoder encoder
| Constructor Detail |
public DefaultSQLBuilder()
public DefaultSQLBuilder(SQLEncoder encoder)
encoder - | Method Detail |
public java.lang.String buildSQLQuery(java.lang.String typeName,
java.lang.String fidColumnName,
AttributeType[] attrTypes,
Filter filter)
throws SQLEncoderException
SQLBuilder
buildSQLQuery in interface SQLBuilderattrTypes - The Attribute types for the select statementfilter - The filter to convert to a where statement.
SQLEncoderException - If an error occurs encoding the SQLpublic Filter getPostQueryFilter(Filter filter)
SQLBuilderThe result will be null if no post processing is required.
This method is used by DefaultJDBCFeatureSource to see if the a Query can be optimized
getPostQueryFilter in interface SQLBuilderfilter -
nullpublic Filter getPreQueryFilter(Filter filter)
getPreQueryFilter in interface SQLBuilder
public void sqlColumns(java.lang.StringBuffer sql,
java.lang.String fidColumnName,
AttributeType[] attributes)
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.
sqlColumns in interface SQLBuildersql - fidColumnName - attributes -
public void sqlFrom(java.lang.StringBuffer sql,
java.lang.String typeName)
sql: FROM typeName
sqlFrom in interface SQLBuildersql - typeName -
public void sqlWhere(java.lang.StringBuffer sql,
Filter preFilter)
throws SQLEncoderException
sql: WHERE filter encoding
sqlWhere in interface SQLBuildersql - DOCUMENT ME!preFilter - DOCUMENT ME!
SQLEncoderException - DOCUMENT ME!
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||