22 |
* |
* |
23 |
*/ |
*/ |
24 |
|
|
25 |
public class DatabaseLayerImplementation { |
public class DatabaseCoverageUpdate { |
26 |
|
|
27 |
//static boolean DEBUG = false; |
//static boolean DEBUG = false; |
28 |
|
|
42 |
; |
; |
43 |
|
|
44 |
try ( Connection conn = DBConnection.getConnection(); |
try ( Connection conn = DBConnection.getConnection(); |
45 |
Statement stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY); |
Statement stmt = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); |
46 |
) { |
) { |
47 |
stmt.setFetchSize(Integer.MIN_VALUE); |
stmt.setFetchSize(Integer.MIN_VALUE); |
48 |
ResultSet res = stmt.executeQuery(sql); |
ResultSet res = stmt.executeQuery(sql); |
210 |
|
|
211 |
stmt.execute(); |
stmt.execute(); |
212 |
if (stmt.getUpdateCount() != 1) { |
if (stmt.getUpdateCount() != 1) { |
213 |
System.out.println("Error executing update"); |
logger.warning("Error executing update: " + addr); |
214 |
} |
} |
215 |
|
|
216 |
} |
} |