Example usage for java.sql Connection getMetaData

List of usage examples for java.sql Connection getMetaData

Introduction

In this page you can find the example usage for java.sql Connection getMetaData.

Prototype

DatabaseMetaData getMetaData() throws SQLException;

Source Link

Document

Retrieves a DatabaseMetaData object that contains metadata about the database to which this Connection object represents a connection.

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.supportsAlterTableWithDropColumn());

    conn.close();/*  w  ww.  jav  a2  s . c o  m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsANSI92FullSQL - " + md.supportsANSI92FullSQL());

    conn.close();//from  w  w  w .ja va  2  s  .  co  m
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsSubqueriesInComparisons - " + md.supportsSubqueriesInComparisons());

    conn.close();//from  w w w  .  j av a2  s.  c  o m
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsSchemasInTableDefinitions - " + md.supportsSchemasInTableDefinitions());

    conn.close();/*from ww w. ja v a2 s  .  c o m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsCatalogsInTableDefinitions - " + md.supportsCatalogsInTableDefinitions());

    conn.close();//from   www .jav  a  2s  .c  om
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsAlterTableWithAddColumn - " + md.supportsAlterTableWithAddColumn());

    conn.close();/* w  w w . j a va 2  s  .c  o m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsColumnAliasing - " + md.supportsColumnAliasing());

    conn.close();/* w  w w . java  2s  .c o  m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsSubqueriesInExists - " + md.supportsSubqueriesInExists());

    conn.close();/*  w  w w .ja v  a 2  s.c o m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsSubqueriesInQuantifieds - " + md.supportsSubqueriesInQuantifieds());

    conn.close();/*from www. j  ava2  s.c o m*/
}

From source file:Main.java

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

    DatabaseMetaData md = conn.getMetaData();
    System.out.println("supportsSchemasInProcedureCalls - " + md.supportsSchemasInProcedureCalls());

    conn.close();/*from  ww  w. j a  v a2 s. co m*/
}