Terminada la creacion de logs para la capa de base de datos
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
|
||||
package danielcortes.xyz.models.caja;
|
||||
|
||||
import danielcortes.xyz.data.Configuration;
|
||||
import danielcortes.xyz.data.SQLiteConnectionHolder;
|
||||
import danielcortes.xyz.models.documentos.Documentos;
|
||||
import danielcortes.xyz.models.documentos.DocumentosDAO;
|
||||
@@ -44,7 +43,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class SQLiteCajaDAO extends CajaDAO {
|
||||
private static final Logger LOGGER = Logger.getLogger( Configuration.class.getName() );
|
||||
private static final Logger LOGGER = Logger.getLogger(SQLiteCajaDAO.class.getName());
|
||||
|
||||
public SQLiteCajaDAO() {
|
||||
this.connectionHolder = new SQLiteConnectionHolder();
|
||||
@@ -127,8 +126,7 @@ public class SQLiteCajaDAO extends CajaDAO {
|
||||
ps.setString(1, caja.getFecha().toString());
|
||||
updates = ps.executeUpdate();
|
||||
|
||||
|
||||
LOGGER.log(Level.FINE, "QUERY: {0} values: {1}", new Object[]{query, caja.getFecha().toString()});
|
||||
LOGGER.log(Level.FINE, "QUERY: {0} | values: {1} | updates: {2}", new Object[]{query, caja.getFecha(), updates});
|
||||
|
||||
ps.close();
|
||||
|
||||
@@ -161,7 +159,7 @@ public class SQLiteCajaDAO extends CajaDAO {
|
||||
ps.setInt(2, caja.getId());
|
||||
updates = ps.executeUpdate();
|
||||
|
||||
LOGGER.log(Level.FINE, "QUERY: {0} | values: [{1},{2}]", new Object[]{query, caja.getFecha().toString(), caja.getId()});
|
||||
LOGGER.log(Level.FINE, "QUERY: {0} | values: [{1},{2} | updates: {3}]", new Object[]{query, caja.getFecha(), caja.getId(), updates});
|
||||
|
||||
|
||||
ps.close();
|
||||
@@ -178,7 +176,7 @@ public class SQLiteCajaDAO extends CajaDAO {
|
||||
LocalDate endDate = date.withDayOfMonth(date.lengthOfMonth()).plusDays(1);
|
||||
int count = 0;
|
||||
|
||||
LOGGER.log(Level.FINE, "Se intentara crear las cajas para un mes para las fechas entre {0} y {1}", new Object[]{date, endDate});
|
||||
LOGGER.log(Level.FINE, "Se intentara crear las cajas no existentes para las fechas entre {0} y {1}", new Object[]{date, endDate});
|
||||
|
||||
while (date.isBefore(endDate)) {
|
||||
if (this.findByFecha(date) != null) {
|
||||
|
||||
Reference in New Issue
Block a user