org.h2gis.utilities.wrapper
Class SpatialResultSetImpl

java.lang.Object
  extended by org.h2gis.utilities.wrapper.ResultSetWrapper
      extended by org.h2gis.utilities.wrapper.SpatialResultSetImpl
All Implemented Interfaces:
ResultSet, Wrapper, SpatialResultSet

public class SpatialResultSetImpl
extends ResultSetWrapper
implements SpatialResultSet

Author:
Nicolas Fortin

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
 
Constructor Summary
SpatialResultSetImpl(ResultSet resultSet, StatementWrapper statement)
           
 
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.
<T> T
unwrap(Class<T> iface)
           
 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 class org.h2gis.utilities.wrapper.ResultSetWrapper
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.ResultSet
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor
 

Constructor Detail

SpatialResultSetImpl

public SpatialResultSetImpl(ResultSet resultSet,
                            StatementWrapper statement)
Method Detail

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry(int columnIndex)
                                                 throws SQLException
Description copied from interface: SpatialResultSet
Retrieves Geometry value of the specified column.

Specified by:
getGeometry in interface SpatialResultSet
Parameters:
columnIndex - Column index [1-n]
Returns:
Geometry value or null
Throws:
SQLException - If the specified column is not a Geometry.

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry(String columnLabel)
                                                 throws SQLException
Description copied from interface: SpatialResultSet
Retrieves Geometry value of the specified column.

Specified by:
getGeometry in interface SpatialResultSet
Parameters:
columnLabel - Column label
Returns:
Geometry value or null
Throws:
SQLException - If the specified column is not a Geometry.

getGeometry

public com.vividsolutions.jts.geom.Geometry getGeometry()
                                                 throws SQLException
Description copied from interface: SpatialResultSet
Retrieves Geometry value of the first geometry column.

Specified by:
getGeometry in interface SpatialResultSet
Returns:
Geometry value or null
Throws:
SQLException - If there is no Geometry columns.

updateGeometry

public void updateGeometry(int columnIndex,
                           com.vividsolutions.jts.geom.Geometry geometry)
                    throws SQLException
Description copied from interface: SpatialResultSet
Update the geometry value

Specified by:
updateGeometry in interface SpatialResultSet
Parameters:
columnIndex - Field index
geometry - Geometry instance
Throws:
SQLException

updateGeometry

public void updateGeometry(String columnLabel,
                           com.vividsolutions.jts.geom.Geometry geometry)
                    throws SQLException
Description copied from interface: SpatialResultSet
Update the geometry value

Specified by:
updateGeometry in interface SpatialResultSet
Parameters:
columnLabel - Field name
geometry - Geometry instance
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Overrides:
unwrap in class ResultSetWrapper
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.