public static void addNewTransacCheckpointKey() { Clustering_Users_DAO dao = null; try { dao = new Clustering_Users_DAO(); dao.beginTransaction(); // Add Key ConstantVariables.SST_TRANSAC_CHECK_POINT System_Setting transac_checkpoint = new System_Setting(); transac_checkpoint.Key = ConstantValues.SST_TRANSAC_CP; transac_checkpoint.DataType = ConstantValues.SST_TRANSAC_CP_TYPE; transac_checkpoint.Description = ConstantValues.SST_TRANSAC_CP_DES; dao.addSystemSetting(transac_checkpoint); dao.commitTransaction(); } catch (Exception ex) { dao.rollbackTransaction(); throw ex; } }