Package cronapp.reports.j4c.dataset.jdbc
Class JDBC
- java.lang.Object
-
- cronapp.reports.j4c.dataset.jdbc.JDBC
-
public final class JDBC extends Object
-
-
Constructor Summary
Constructors Constructor Description JDBC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Relation>fetchColumns(Connection conn)static Map<String,Relation>fetchColumns(Connection conn, String schema)static Map<String,Relation>fetchColumns(Connection conn, String schema, String table)static Map<String,ForeignKey>fetchForeignKeys(Connection conn, String table)static Map<String,Index>fetchIndexes(DatabaseMetaData meta, String catalog, String schemaName, String tableName, boolean unique)static Map<String,PrimaryKey>fetchPrimaryKeys(Connection conn, String table)static Set<String>fetchRelationNames(Connection conn)static Class<?>getJavaType(int sqlType)static StringgetJavaType(String type)static StringgetSqlTypeName(int sqlType)
-
-
-
Method Detail
-
fetchForeignKeys
public static Map<String,ForeignKey> fetchForeignKeys(Connection conn, String table) throws SQLException
- Throws:
SQLException
-
fetchPrimaryKeys
public static Map<String,PrimaryKey> fetchPrimaryKeys(Connection conn, String table) throws SQLException
- Throws:
SQLException
-
fetchRelationNames
public static Set<String> fetchRelationNames(Connection conn) throws SQLException
- Throws:
SQLException
-
fetchColumns
public static Map<String,Relation> fetchColumns(Connection conn) throws SQLException
- Throws:
SQLException
-
fetchColumns
public static Map<String,Relation> fetchColumns(Connection conn, String schema) throws SQLException
- Throws:
SQLException
-
fetchColumns
public static Map<String,Relation> fetchColumns(Connection conn, String schema, String table) throws SQLException
- Throws:
SQLException
-
fetchIndexes
public static Map<String,Index> fetchIndexes(DatabaseMetaData meta, String catalog, String schemaName, String tableName, boolean unique) throws SQLException
- Throws:
SQLException
-
getSqlTypeName
public static String getSqlTypeName(int sqlType)
-
getJavaType
public static Class<?> getJavaType(int sqlType)
-
-