public final class SQLFunctions extends Object
Modifier and Type | Method and Description |
---|---|
static void |
close(Connection connection)
Close connection and ignore SQLExceptions.
|
static void |
close(PreparedStatement prep)
Close prep and ignore SQLExceptions.
|
static void |
close(ResultSet rs)
Close rs and ignore SQLExceptions.
|
static void |
close(Statement stmt)
Close stmt and ignore SQLExceptions.
|
static Class<?> |
getClassForType(int type)
Do simple mapping from an SQL type to a Java Class.
|
static Collection<String> |
getTablesInDB(Connection connection)
Get the tables in the database.
|
public static Class<?> getClassForType(int type)
public static void close(Statement stmt)
public static void close(PreparedStatement prep)
public static void close(ResultSet rs)
public static void close(Connection connection)
public static Collection<String> getTablesInDB(Connection connection) throws SQLException
connection
- the connection to the databaseSQLException
DatabaseMetaData.getTables(String, String, String, String[])