Package org.h2gis.utilities
Interface SpatialResultSetMetaData
-
- All Superinterfaces:
ResultSetMetaData,Wrapper
- All Known Implementing Classes:
SpatialResultSetMetaDataImpl
public interface SpatialResultSetMetaData extends ResultSetMetaData
In order to provide a common API with H2 Spatial and PostGIS this MetaData give type information on Geometry fields.- Author:
- Nicolas Fortin
-
-
Field Summary
-
Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFirstGeometryFieldIndex()intgetGeometryType()intgetGeometryType(int column)-
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, unwrap
-
-
-
-
Method Detail
-
getGeometryType
int getGeometryType(int column) throws SQLException- Parameters:
column-- Returns:
GeometryTypeCodesof the provided column.- Throws:
SQLException
-
getGeometryType
int getGeometryType() throws SQLException- Returns:
GeometryTypeCodesof the first geometry column.- Throws:
SQLException- if this meta data does not contains a geometry field.
-
getFirstGeometryFieldIndex
int getFirstGeometryFieldIndex() throws SQLException- Returns:
- Column index of the first geometry in this result set.
- Throws:
SQLException
-
-