|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpatialResultSet
In order to provide a common API with H2 Spatial and PostGIS, this result set manage the conversion of column to JTS geometry. Usage: SpatialResultSet rs = myStatement.executeQuery().unwrap(SpatialResultSet.class);
| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSet |
|---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Method Summary | |
|---|---|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Retrieves Geometry value of the first geometry column. |
com.vividsolutions.jts.geom.Geometry |
getGeometry(int columnIndex)
Retrieves Geometry value of the specified column. |
com.vividsolutions.jts.geom.Geometry |
getGeometry(String columnLabel)
Retrieves Geometry value of the specified column. |
void |
updateGeometry(int columnIndex,
com.vividsolutions.jts.geom.Geometry geometry)
Update the geometry value |
void |
updateGeometry(String columnLabel,
com.vividsolutions.jts.geom.Geometry geometry)
Update the geometry value |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
com.vividsolutions.jts.geom.Geometry getGeometry(int columnIndex)
throws SQLException
columnIndex - Column index [1-n]
SQLException - If the specified column is not a Geometry.
com.vividsolutions.jts.geom.Geometry getGeometry(String columnLabel)
throws SQLException
columnLabel - Column label
SQLException - If the specified column is not a Geometry.
com.vividsolutions.jts.geom.Geometry getGeometry()
throws SQLException
SQLException - If there is no Geometry columns.
void updateGeometry(int columnIndex,
com.vividsolutions.jts.geom.Geometry geometry)
throws SQLException
columnIndex - Field indexgeometry - Geometry instance
SQLException
void updateGeometry(String columnLabel,
com.vividsolutions.jts.geom.Geometry geometry)
throws SQLException
columnLabel - Field namegeometry - Geometry instance
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||