1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
IndigoLogger.logDebug(className,"updateDatasLivraisons entree methode");
IndigoLogger.logDebug(className,"updateDatasLivraisons" + "requete:" +requete);
Connection conn = null;
Statement pstmt = null;
DBConnection dbConnection = null;
try {
dbConnection = DBConnection.getInstance();
conn = dbConnection.getConnection();
pstmt = conn.createStatement();
pstmt.executeUpdate(requete);
} catch (SQLException e) {
IndigoLogger.logError(className, "exception " + e.getErrorCode());
IndigoLogger.logError(className, "exception " + e);
e.printStackTrace();
} finally {
try {
if (null != pstmt) {
pstmt.close();
}
dbConnection.freeConnection(conn);
} catch (SQLException e) {
e.printStackTrace();
throw new Exception(e);
}
}
IndigoLogger.logDebug(className,"sortie updateDatasLivraisons"); |
Partager