List of usage examples for java.sql Connection getMetaData
DatabaseMetaData getMetaData() throws SQLException;
DatabaseMetaData
object that contains metadata about the database to which this Connection
object represents a connection. From source file:Main.java
public static void main(String[] args) throws Exception { Connection conn = getHSQLConnection(); DatabaseMetaData md = conn.getMetaData(); System.out.println("supportsGroupByBeyondSelect - " + md.supportsGroupByBeyondSelect()); conn.close();/*ww w .j a 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("supportsOpenCursorsAcrossRollback - " + md.supportsOpenCursorsAcrossRollback()); conn.close();//from w w w . j a va 2s . com }
From source file:Main.java
public static void main(String[] args) throws Exception { Connection conn = getHSQLConnection(); DatabaseMetaData md = conn.getMetaData(); System.out.println("supportsGroupByUnrelated - " + md.supportsGroupByUnrelated()); conn.close();//from www.ja v a 2 s. 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("supportsOpenStatementsAcrossCommit - " + md.supportsOpenStatementsAcrossCommit()); conn.close();//w ww . j a v a 2 s .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("supportsLimitedOuterJoins - " + md.supportsLimitedOuterJoins()); conn.close();//from w ww.j a v a 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(md.getDatabaseMinorVersion()); conn.close();/*from w w w . j a v a2 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("supportsMultipleOpenResults - " + md.supportsMultipleOpenResults()); conn.close();// w w w.ja va 2s.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("supportsCorrelatedSubqueries - " + md.supportsCorrelatedSubqueries()); conn.close();//from w ww . ja 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("supportsNamedParameters - " + md.supportsNamedParameters()); conn.close();/* w w w . ja 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(md.getDriverVersion()); conn.close();/*from www . j a v a2 s . c o m*/ }