Example usage for java.sql DatabaseMetaData supportsConvert

List of usage examples for java.sql DatabaseMetaData supportsConvert

Introduction

In this page you can find the example usage for java.sql DatabaseMetaData supportsConvert.

Prototype

boolean supportsConvert(int fromType, int toType) throws SQLException;

Source Link

Document

Retrieves whether this database supports the JDBC scalar function CONVERT for conversions between the JDBC types fromType and toType.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    Connection conn = getHSQLConnection();

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsAlterTableWithDropColumn - "
            + md.supportsConvert(java.sql.Types.ARRAY, java.sql.Types.INTEGER));

    conn.close();//from ww  w  .ja  v a 2s .  co m
}