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