| java.lang.Object org.geotools.data.jdbc.DefaultSQLBuilder org.geotools.data.postgis.PostgisSQLBuilder
PostgisSQLBuilder | public class PostgisSQLBuilder extends DefaultSQLBuilder (Code) | | Builds sql for postgis.
author: Chris Holmes |
WKBEnabled | protected boolean WKBEnabled(Code) | | If true, WKB format is used instead of WKT
|
byteaEnabled | protected boolean byteaEnabled(Code) | | If true, ByteA function is used to transfer WKB data
|
schemaEnabled | protected boolean schemaEnabled(Code) | | If true, tables are qualified with a schema *
|
PostgisSQLBuilder | public PostgisSQLBuilder(SQLEncoder encoder, JDBCDataStoreConfig config)(Code) | | Constructor with encoder. Use PostgisSQLBuilder(encoder, config, ft) if possible.
Parameters: encoder - |
encodeColumnName | public String encodeColumnName(String columnName)(Code) | | Surround columnName with quotes.
Parameters: columnName - "columnName" |
encodeTableName | public String encodeTableName(String tableName)(Code) | | Encode the table name (if schemaEnabled is true the schema name
will be prepended).
Parameters: tableName - "tableName" or "schema"."tableName" |
isByteaEnabled | public boolean isByteaEnabled()(Code) | | Enables the use of the bytea function to transfer faster WKB geometries
|
isSchemaEnabled | public boolean isSchemaEnabled()(Code) | | true if table names are prefixed with the containing schema. |
isWKBEnabled | public boolean isWKBEnabled()(Code) | | Returns true if the WKB format is used to transfer geometries, false
otherwise
|
setByteaEnabled | public void setByteaEnabled(boolean byteaEnable)(Code) | | Enables/disables the use of the bytea function
Parameters: byteaEnable - |
setSchemaEnabled | public void setSchemaEnabled(boolean schemaEnabled)(Code) | | Enables/disables schema name qualification.
|
setWKBEnabled | public void setWKBEnabled(boolean enabled)(Code) | | If turned on, WKB will be used to transfer geometry data instead of WKT
Parameters: enabled - |
sqlColumns | public void sqlColumns(StringBuffer sql, FIDMapper mapper, AttributeType[] attributes)(Code) | | 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.
Parameters: sql - Parameters: mapper - Parameters: attributes - |
sqlFrom | public void sqlFrom(StringBuffer sql, String typeName)(Code) | | Consutrcts FROM clause for featureType
sql: FROM typeName
Parameters: sql - Parameters: typeName - |
|
|