|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJDBCFeatureWriter
JDBCTextFeatureWriter
PostgisFeatureWriter
public class PostgisFeatureWriter
An implementation of FeatureWriter that will work over a result set.
Field Summary | |
---|---|
protected static WKTWriter |
geometryWriter
Well Known Text writer (from JTS). |
Fields inherited from class JDBCTextFeatureWriter |
---|
mapper |
Fields inherited from class JDBCFeatureWriter |
---|
closed, current, fidAttributes, live, queryData, reader |
Constructor Summary | |
---|---|
PostgisFeatureWriter(FeatureReader<SimpleFeatureType,SimpleFeature> fReader,
QueryData queryData,
boolean WKBEnabled,
boolean byteaWKB,
PostgisSQLBuilder sqlBuilder)
|
Method Summary | |
---|---|
protected String |
encodeColumnName(String colName)
Encodes the colName, default just calls JDBCFeatureWriter.encodeName(String) . |
protected String |
encodeName(String tableName)
DJB: this is the javadoc from the superclass, but this wasnt being done. |
protected String |
getGeometryInsertText(Geometry geom,
int srid)
Turns a geometry into the textual version needed for the sql statement |
boolean |
isWKBEnabled()
Returns true if the WKB format is used to transfer geometries, false otherwise |
protected String |
makeSelectForUpdateSql(SimpleFeature current)
For postgres >= 8.1 NOWAIT is used (meaning you get a response). |
void |
setWKBEnabled(boolean enabled)
If turned on, WKB will be used to transfer geometry data instead of WKT |
Methods inherited from class JDBCTextFeatureWriter |
---|
addQuotes, doInsert, doUpdate, makeDeleteSql, makeInsertSql, makeUpdateSql, remove, useQueryDataForInsert |
Methods inherited from class JDBCFeatureWriter |
---|
close, getFeatureType, hasNext, next, write |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static WKTWriter geometryWriter
Constructor Detail |
---|
public PostgisFeatureWriter(FeatureReader<SimpleFeatureType,SimpleFeature> fReader, QueryData queryData, boolean WKBEnabled, boolean byteaWKB, PostgisSQLBuilder sqlBuilder) throws IOException
fReader
- queryData
- WKBEnabled
- byteaWKB
- -- true if you're using postgis 1.0+. they changed how to do wkb writing.
IOException
Method Detail |
---|
protected String getGeometryInsertText(Geometry geom, int srid) throws IOException
JDBCTextFeatureWriter
getGeometryInsertText
in class JDBCTextFeatureWriter
IOException
public boolean isWKBEnabled()
public void setWKBEnabled(boolean enabled)
enabled
- protected String encodeName(String tableName)
encodeName
in class JDBCFeatureWriter
protected String encodeColumnName(String colName)
JDBCFeatureWriter
JDBCFeatureWriter.encodeName(String)
.
encodeColumnName
in class JDBCFeatureWriter
protected String makeSelectForUpdateSql(SimpleFeature current)
makeSelectForUpdateSql
in class JDBCTextFeatureWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |