| java.lang.Object org.compass.gps.device.jdbc.JdbcUtils
JdbcUtils | abstract public class JdbcUtils (Code) | | A set of Jdbc utilities.
author: kimchy |
closeConnection | public static void closeConnection(Connection con)(Code) | | Close the given JDBC connection and ignore any thrown exception. This is
useful for typical finally blocks in manual JDBC code.
Parameters: con - The JDBC Connection to close |
closeResultSet | public static void closeResultSet(ResultSet rs)(Code) | | Close the given JDBC ResultSet and ignore any thrown exception. This is
useful for typical finally blocks in manual JDBC code.
Parameters: rs - the JDBC ResultSet to close |
closeStatement | public static void closeStatement(Statement stmt)(Code) | | Close the given JDBC Statement and ignore any thrown exception. This is
useful for typical finally blocks in manual JDBC code.
Parameters: stmt - The JDBC Statement to close |
getColumnIndexFromColumnName | public static int getColumnIndexFromColumnName(ResultSetMetaData metaData, String columnName) throws SQLException(Code) | | Returns the column index for the guven column name. Note that if there
are two columns with the same name, the first onde index will be
returned.
-1 is returned if none is found.
|
|
|