uk.ac.starlink.table.jdbc
Interface TypeMapper


public interface TypeMapper

Determines how JDBC types are mapped to java types.

Since:
2 Feb 2010
See Also:
TypeMappers

Method Summary
 ValueHandler createValueHandler(ResultSetMetaData meta, int jcol1)
          Constructs a ValueHandler suitable for converting the data from a column in a given ResultSet.
 List getColumnAuxDataInfos()
          Returns an ordered list of ValueInfo objects representing the auxilliary metadata returned by the ColumnInfo objects used by this mapper's ValueHandlers.
 

Method Detail

createValueHandler

ValueHandler createValueHandler(ResultSetMetaData meta,
                                int jcol1)
                                throws SQLException
Constructs a ValueHandler suitable for converting the data from a column in a given ResultSet.

Parameters:
meta - result set metadata
jcol1 - JDBC column index (first column is 1)
Throws:
SQLException

getColumnAuxDataInfos

List getColumnAuxDataInfos()
Returns an ordered list of ValueInfo objects representing the auxilliary metadata returned by the ColumnInfo objects used by this mapper's ValueHandlers. An empty array may be returned if not known.

Returns:
an unmodifiable ordered set of known metadata keys
See Also:
StarTable.getColumnAuxDataInfos()

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.