Logging!!
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
package danielcortes.xyz.models.documentos;
|
||||
|
||||
import danielcortes.xyz.data.Configuration;
|
||||
import danielcortes.xyz.data.ConnectionHolder;
|
||||
import danielcortes.xyz.models.caja.Caja;
|
||||
import danielcortes.xyz.models.caja.CajaDAO;
|
||||
@@ -33,8 +34,12 @@ import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public abstract class DocumentosDAO {
|
||||
private static final Logger LOGGER = Logger.getLogger(Configuration.class.getName());
|
||||
|
||||
protected ConnectionHolder connectionHolder;
|
||||
|
||||
public abstract List<Documentos> findAll();
|
||||
@@ -66,7 +71,10 @@ public abstract class DocumentosDAO {
|
||||
documentos.setTarjetas(rs.getInt("tarjetas"));
|
||||
documentos.setRetiros(rs.getInt("retiros"));
|
||||
|
||||
LOGGER.log(Level.FINER, "Se a creo: {0}", documentos);
|
||||
|
||||
documentosList.add(documentos);
|
||||
|
||||
}
|
||||
return documentosList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user