org.h2gis.utilities.wrapper
Class SpatialResultSetMetaDataImpl
java.lang.Object
org.h2gis.utilities.wrapper.ResultSetMetaDataWrapper
org.h2gis.utilities.wrapper.SpatialResultSetMetaDataImpl
- All Implemented Interfaces:
- ResultSetMetaData, Wrapper, SpatialResultSetMetaData
public class SpatialResultSetMetaDataImpl
- extends ResultSetMetaDataWrapper
- implements SpatialResultSetMetaData
- Author:
- Nicolas Fortin
| Methods inherited from class org.h2gis.utilities.wrapper.ResultSetMetaDataWrapper |
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSetMetaData |
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable |
SpatialResultSetMetaDataImpl
public SpatialResultSetMetaDataImpl(ResultSetMetaData resultSetMetaData,
StatementWrapper statement)
- Constructor
- Parameters:
resultSetMetaData - meta datastatement - Active statement
getFirstGeometryFieldIndex
public int getFirstGeometryFieldIndex()
throws SQLException
- Specified by:
getFirstGeometryFieldIndex in interface SpatialResultSetMetaData
- Returns:
- Column index of the first geometry in this result set.
- Throws:
SQLException
getGeometryType
public int getGeometryType()
throws SQLException
- Specified by:
getGeometryType in interface SpatialResultSetMetaData
- Returns:
GeometryTypeCodes of the first geometry column.
- Throws:
SQLException - if this meta data does not contains a geometry field.
getGeometryType
public int getGeometryType(int column)
throws SQLException
- Specified by:
getGeometryType in interface SpatialResultSetMetaData
- Returns:
GeometryTypeCodes of the provided column.
- Throws:
SQLException
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- Specified by:
unwrap in interface Wrapper- Overrides:
unwrap in class ResultSetMetaDataWrapper
- Throws:
SQLException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.