org.h2gis.utilities.wrapper
Class SpatialResultSetMetaDataImpl

java.lang.Object
  extended by org.h2gis.utilities.wrapper.ResultSetMetaDataWrapper
      extended by 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
SpatialResultSetMetaDataImpl(ResultSetMetaData resultSetMetaData, StatementWrapper statement)
          Constructor
 
Method Summary
 int getFirstGeometryFieldIndex()
           
 int getGeometryType()
           
 int getGeometryType(int column)
           
<T> T
unwrap(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 data
statement - Active statement
Method Detail

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.