|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mtu.eggplant.util.sql.SQLFunctions
public final class SQLFunctions
Handy functions for SQL
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 database
SQLException
DatabaseMetaData.getTables(String, String, String, String[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |