+ "isCollected SMALLINT NOT NULL, "\r
+ "isClusterJob SMALLINT NOT NULL)";\r
// We create a table...\r
- System.out.println(create);\r
+ log.debug(create);\r
s.execute(create);\r
s.close();\r
conn.close();\r
pstm.executeUpdate();\r
}\r
conn.commit();\r
+ conn.setAutoCommit(true);\r
pstm.close();\r
}\r
\r
conn.close();\r
}\r
} catch (SQLException e) {\r
- System.err.println("Database commit failed with "\r
- + e.getLocalizedMessage());\r
+ log.warn("Database commit failed with " + e.getLocalizedMessage());\r
}\r
boolean gotSQLExc = false;\r
try {\r
}\r
}\r
if (!gotSQLExc) {\r
- System.err.println("Database did not shut down normally");\r
+ log.warn("Database did not shut down normally");\r
} else {\r
- System.out.println("Database shut down normally");\r
+ log.info("Database shut down normally");\r
}\r
}\r
public static void main(String[] args) throws SQLException {\r