Package 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
-
-
Field Summary
-
Fields inherited from class org.h2gis.utilities.wrapper.ResultSetMetaDataWrapper
statement
-
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
-
Constructor Summary
Constructors Constructor Description SpatialResultSetMetaDataImpl(ResultSetMetaData resultSetMetaData, StatementWrapper statement)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFirstGeometryFieldIndex()intgetGeometryType()intgetGeometryType(int column)<T> Tunwrap(Class<T> iface)-
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
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor
-
-
-
-
Constructor Detail
-
SpatialResultSetMetaDataImpl
public SpatialResultSetMetaDataImpl(ResultSetMetaData resultSetMetaData, StatementWrapper statement)
Constructor- Parameters:
resultSetMetaData- meta datastatement- Active statement
-
-
Method Detail
-
getFirstGeometryFieldIndex
public int getFirstGeometryFieldIndex() throws SQLException- Specified by:
getFirstGeometryFieldIndexin interfaceSpatialResultSetMetaData- Returns:
- Column index of the first geometry in this result set.
- Throws:
SQLException
-
getGeometryType
public int getGeometryType() throws SQLException- Specified by:
getGeometryTypein interfaceSpatialResultSetMetaData- Returns:
GeometryTypeCodesof 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:
getGeometryTypein interfaceSpatialResultSetMetaData- Returns:
GeometryTypeCodesof the provided column.- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Overrides:
unwrapin classResultSetMetaDataWrapper- Throws:
SQLException
-
-