- java.lang.Object
-
- com.exasol.adapter.jdbc.AbstractMetadataReader
-
- com.exasol.adapter.jdbc.BaseColumnMetadataReader
-
- com.exasol.adapter.dialects.exasol.ExasolColumnMetadataReader
-
- All Implemented Interfaces:
com.exasol.adapter.jdbc.ColumnMetadataReader,com.exasol.adapter.jdbc.MetadataReader
public class ExasolColumnMetadataReader extends com.exasol.adapter.jdbc.BaseColumnMetadataReaderThis class implements Exasol-specific reading of column metadata.
-
-
Constructor Summary
Constructors Constructor Description ExasolColumnMetadataReader(Connection connection, com.exasol.adapter.AdapterProperties properties, com.exasol.adapter.dialects.IdentifierConverter identifierConverter)Create a new instance of theExasolColumnMetadataReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intextractSrid(String typeDescriptionString)Extract the spacial reference system identifier (SRID) from a type description.com.exasol.adapter.metadata.DataTypemapJdbcType(com.exasol.adapter.jdbc.JDBCTypeDescription jdbcTypeDescription)com.exasol.adapter.jdbc.JDBCTypeDescriptionreadJdbcTypeDescription(ResultSet remoteColumn)-
Methods inherited from class com.exasol.adapter.jdbc.BaseColumnMetadataReader
convertDecimal, getColumnMetadata, getColumnMetadataAllowingPatterns, getColumnsFromResultSet, getNumberTypeFromProperty, isRemoteColumnNullable, mapColumnName, mapColumns, mapColumns, mapJdbcTypeNumericToDecimalWithFallbackToDouble, mapOrSkipColumn, readColumnName
-
-
-
-
Constructor Detail
-
ExasolColumnMetadataReader
public ExasolColumnMetadataReader(Connection connection, com.exasol.adapter.AdapterProperties properties, com.exasol.adapter.dialects.IdentifierConverter identifierConverter)
Create a new instance of theExasolColumnMetadataReader.- Parameters:
connection- JDBC connection through which the column metadata is read from the remote databaseproperties- user-defined adapter propertiesidentifierConverter- converter between source and Exasol identifiers
-
-
Method Detail
-
mapJdbcType
public com.exasol.adapter.metadata.DataType mapJdbcType(com.exasol.adapter.jdbc.JDBCTypeDescription jdbcTypeDescription)
- Specified by:
mapJdbcTypein interfacecom.exasol.adapter.jdbc.ColumnMetadataReader- Overrides:
mapJdbcTypein classcom.exasol.adapter.jdbc.BaseColumnMetadataReader
-
readJdbcTypeDescription
public com.exasol.adapter.jdbc.JDBCTypeDescription readJdbcTypeDescription(ResultSet remoteColumn) throws SQLException
- Overrides:
readJdbcTypeDescriptionin classcom.exasol.adapter.jdbc.BaseColumnMetadataReader- Throws:
SQLException
-
extractSrid
protected int extractSrid(String typeDescriptionString)
Extract the spacial reference system identifier (SRID) from a type description.- Parameters:
typeDescriptionString- a type description likeGEOMETRY(1234)orGEOMETRY.- Returns:
- the SRID from the type description or the default value
DEFAULT_SPACIAL_REFERENCE_SYSTEM_IDENTIFIER
-
-