Revision 45152 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/JDBCUtils.java
JDBCUtils.java | ||
---|---|---|
185 | 185 |
} |
186 | 186 |
} |
187 | 187 |
|
188 |
public static int executeUpdate(Statement st, String sql) throws SQLException { |
|
189 |
if( LOGGER.isDebugEnabled() ) { |
|
190 |
LOGGER.debug("["+getConnId(st)+"] executeUpdate(st) SQL= "+ sql); |
|
191 |
} |
|
192 |
try { |
|
193 |
return st.executeUpdate(sql); |
|
194 |
} catch(Exception ex) { |
|
195 |
LOGGER.warn("execute update SQL: " + sql, ex); |
|
196 |
throw ex; |
|
197 |
} |
|
198 |
} |
|
199 |
|
|
188 | 200 |
public static void closeQuietly(Statement st) { |
189 | 201 |
if( LOGGER.isDebugEnabled() ) { |
190 | 202 |
LOGGER.debug("["+getConnId(st)+"] Close statement"); |
Also available in: Unified diff