getColumnType(int column)

Syntax:

int getColumnType(int column)
                  throws SQLException

Description:

Retrieves the designated column's SQL type.

Parameters:

column

the first column is 1, the second is 2, ...

Returns:

SQL type from java.sql.Types

Throws:

SQLException - if a database access error occurs, column is less than 1 or greater than the number of columns or the object has been closed.

Reference:

For more information, reference JDBC documentation for: ResultSetMetaData.getColumnType(int)