Example usage for java.sql DatabaseMetaData supportsStatementPooling

List of usage examples for java.sql DatabaseMetaData supportsStatementPooling

Introduction

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

Prototype

boolean supportsStatementPooling() throws SQLException;

Source Link

Document

Retrieves whether this database supports statement pooling.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    Connection conn = getConnection();
    try {/*from   w  w w.  j  av a 2s  .  c  o  m*/
        DatabaseMetaData dbmd = conn.getMetaData();
        if (dbmd == null) {
            System.out.println("No");
        }
        if (dbmd.supportsStatementPooling()) {
            System.out.println("statement pooling is supported");
        } else {
            System.out.println("No");
        }
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        conn.close();
    }
}