List of usage examples for java.sql DatabaseMetaData supportsStatementPooling
boolean supportsStatementPooling() throws SQLException;
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(); } }