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("getMaxTablesInSelect - " + md.getMaxTablesInSelect()); System.out.println("getMaxColumnsInTable - " + md.getMaxColumnsInTable()); conn.close();/*from www . jav a 2 s . com*/ }
From source file:Main.java
public static void main(String[] args) throws Exception { Connection conn = getHSQLConnection(); DatabaseMetaData md = conn.getMetaData(); System.out.println("supportsCatalogsInDataManipulation - " + md.supportsCatalogsInDataManipulation()); conn.close();//w ww.j a v a 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("supportsSelectForUpdate - " + md.supportsSelectForUpdate()); conn.close();/* w w w. j a v a2s. 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("supportsANSI92IntermediateSQL - " + md.supportsANSI92IntermediateSQL()); conn.close();//from w w w . j a va2 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("supportsStoredProcedures - " + md.supportsStoredProcedures()); conn.close();/*from w w 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("supportsANSI92EntryLevelSQL - " + md.supportsANSI92EntryLevelSQL()); conn.close();//w ww. 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("supportsTableCorrelationNames - " + md.supportsTableCorrelationNames()); conn.close();/*from ww w .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("supportsSchemasInDataManipulation - " + md.supportsSchemasInDataManipulation()); conn.close();//from ww w .j a va 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("supportsUnionAll - " + md.supportsUnionAll()); conn.close();/*from w ww . j a 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("supportsSavepoints - " + md.supportsSavepoints()); conn.close();/*from w w w.jav a 2 s. c o m*/ }