|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides an interface for SQL statement construction.
Currently just doing query building, but obviously this can be extended.
Method Summary | |
java.lang.String |
buildSQLQuery(java.lang.String typeName,
FIDMapper mapper,
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,
FIDMapper mapper,
AttributeType[] attributes)
Produces the select information required. |
void |
sqlFrom(java.lang.StringBuffer sql,
java.lang.String typeName)
Consutrcts FROM clause for featureType sql: FROM typeName
|
void |
sqlWhere(java.lang.StringBuffer sql,
Filter preFilter)
Constructs WHERE clause, if needed, for FILTER. |
Method Detail |
public java.lang.String buildSQLQuery(java.lang.String typeName, FIDMapper mapper, AttributeType[] attrTypes, Filter filter) throws SQLEncoderException
attrTypes
- 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)
The 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
filter
-
null
public Filter getPreQueryFilter(Filter filter)
public void sqlColumns(java.lang.StringBuffer sql, FIDMapper mapper, 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.
sql
- attributes
- public void sqlFrom(java.lang.StringBuffer sql, java.lang.String typeName)
sql: FROM typeName
sql
- public void sqlWhere(java.lang.StringBuffer sql, Filter preFilter) throws SQLEncoderException
sql: WHERE filter encoding
SQLEncoderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |