|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.DefaultSQLBuilder
org.geotools.data.postgis.PostgisSQLBuilder
Builds sql for postgis.
| Field Summary | |
protected boolean |
byteaEnabled
If true, ByteA function is used to transfer WKB data |
protected JDBCDataStoreConfig |
config
the datastore |
protected boolean |
WKBEnabled
If true, WKB format is used instead of WKT |
| Fields inherited from class org.geotools.data.jdbc.DefaultSQLBuilder |
encoder |
| Constructor Summary | |
PostgisSQLBuilder(int srid,
JDBCDataStoreConfig config)
|
|
PostgisSQLBuilder(SQLEncoder encoder,
JDBCDataStoreConfig config)
Constructor with encoder. |
|
| Method Summary | |
java.lang.String |
encodeColumnName(java.lang.String columnName)
|
java.lang.String |
encodeTableName(java.lang.String tableName)
|
boolean |
isByteaEnabled()
Enables the use of the bytea function to transfer faster WKB geometries |
boolean |
isWKBEnabled()
Returns true if the WKB format is used to transfer geometries, false otherwise |
void |
setByteaEnabled(boolean byteaEnable)
Enables/disables the use of the bytea function |
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,
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. |
| Methods inherited from class org.geotools.data.jdbc.DefaultSQLBuilder |
buildSQLQuery, getPostQueryFilter, getPreQueryFilter, sqlGeometryColumn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean WKBEnabled
protected boolean byteaEnabled
protected JDBCDataStoreConfig config
| Constructor Detail |
public PostgisSQLBuilder(int srid,
JDBCDataStoreConfig config)
public PostgisSQLBuilder(SQLEncoder encoder,
JDBCDataStoreConfig config)
encoder - | Method Detail |
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.
sqlColumns in interface SQLBuildersqlColumns in class DefaultSQLBuildersql - mapper - attributes - postgisDataStore.SQLBuilder#sqlColumns(java.lang.StringBuffer,
postgisDataStore.FIDMapper.FIDMapper,
org.geotools.feature.AttributeType[])
public void sqlFrom(java.lang.StringBuffer sql,
java.lang.String typeName)
sql: FROM typeName
sqlFrom in interface SQLBuildersqlFrom in class DefaultSQLBuildersql - typeName -
public void sqlWhere(java.lang.StringBuffer sql,
Filter preFilter)
throws SQLEncoderException
sql: WHERE filter encoding
sqlWhere in interface SQLBuildersqlWhere in class DefaultSQLBuildersql - DOCUMENT ME!preFilter - DOCUMENT ME!
SQLEncoderException - DOCUMENT ME!public boolean isWKBEnabled()
public void setWKBEnabled(boolean enabled)
enabled - public boolean isByteaEnabled()
public void setByteaEnabled(boolean byteaEnable)
byteaEnable - public java.lang.String encodeTableName(java.lang.String tableName)
public java.lang.String encodeColumnName(java.lang.String columnName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||