From ae7e8b692b24622456c2ef9af70f0e2f715a37b2 Mon Sep 17 00:00:00 2001 From: Juan Rojas <jrojas.ti@sacooliveros.edu.pe> Date: Thu, 8 Nov 2018 08:54:55 -0500 Subject: [PATCH] [EDIT] change sqlserverdao to mysqldao --- src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java | 1 + src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java | 2 +- src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java | 3 +-- src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java | 2 +- src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/EscalafonService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/ParentescoService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java | 2 +- src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java | 76 ++++++++++++++++++++++++++++++++++++++-------------------------------------- src/java/trismegistoplanilla/servicesMysql/UbigeoService.java | 2 +- 28 files changed, 65 insertions(+), 65 deletions(-) diff --git a/src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java b/src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java index 26f20e1..1d8edca 100644 --- a/src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java +++ b/src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java @@ -68,6 +68,7 @@ public class AreaCargoMysqlDAO implements AreaCargoDAO { e.printStackTrace(); } } + JOObtenerAreaCargo = new JSONObject(response); return JOObtenerAreaCargo; diff --git a/src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java b/src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java index e2157ca..e2da62e 100644 --- a/src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java +++ b/src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java @@ -17,7 +17,7 @@ public class CorreoMysqlDAO implements CorreoDAO { @Override public boolean enviarCorreo(Correo c) { - System.out.println("CorreoSqlserverDAO: enviarCorreo"); + System.out.println("CorreoMysqlDAO: enviarCorreo"); boolean envio; try { diff --git a/src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java b/src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java index f5a2141..5000a0e 100644 --- a/src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java +++ b/src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java @@ -424,8 +424,7 @@ public class FichaMysqlDAO implements FichaDAO { psDesactivarTokenFicha = null; ResultSet rsObtenerEstadoFicha = null; - try { - // conectarse a la Variables.BD_NAME de datos + try { conexion = MysqlDAOFactory.obtenerConexion(Variables.MYSQL_NUEVO_BD_NAME); conexion.setAutoCommit(false); diff --git a/src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java b/src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java index cb7e312..e1d85bf 100644 --- a/src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java +++ b/src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java @@ -179,7 +179,7 @@ public class PersonaMysqlDAO implements PersonaDAO { psPersona.setString(5, p.getNumeroDocumento()); psPersona.setString(6, p.getCorreo()); psPersona.setInt(7, p.getIsDefaultMail()); - System.out.println(psPersona); + int resultRegistrarPersona = psPersona.executeUpdate(); if (resultRegistrarPersona > 0) { diff --git a/src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java b/src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java index 944a150..598802e 100644 --- a/src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java +++ b/src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory; public class AreaCargoTipoPagoService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); AreaCargoTipoPagoDAO objAreaCargoTipoPagoDAO = factory.getAreaCargoTipoPagoDAO(); public JSONObject obtenerAreaCargoTipoPago(AreaCargoTipoPagoBean actp) { diff --git a/src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java b/src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java index 4c528ae..2362431 100644 --- a/src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java +++ b/src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java @@ -8,7 +8,7 @@ import trismegistoplanilla.dao.DAOFactory; public class CargaFamiliarService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); CargaFamiliarDAO service = daoFactory.getCargaFamiliarDAO(); public JSONObject validarExistenciaNumeroDocumento(CargaFamiliarBean cargaFamiliar) { diff --git a/src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java b/src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java index 2a5925a..a6c1da5 100644 --- a/src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java +++ b/src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory; public class CarreraProfesionalService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); CarreraProfesionalDAO service = daoFactory.getCarreraProfesionalDAO(); public JSONObject listarCarreraProfesional(String carrera) { diff --git a/src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java b/src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java index 429b22b..04f9008 100644 --- a/src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java +++ b/src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DetalleLoteFichaDocenteDAO; public class DetalleLoteFichaDocenteService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); DetalleLoteFichaDocenteDAO dao = daoFactory.getDetalleLoteFichaDocenteDAO(); public JSONObject listarDetalleLoteFichaDocenteDT(LoteFichaBean loteFicha) { diff --git a/src/java/trismegistoplanilla/servicesMysql/EscalafonService.java b/src/java/trismegistoplanilla/servicesMysql/EscalafonService.java index cc8ebbb..2a8ec47 100644 --- a/src/java/trismegistoplanilla/servicesMysql/EscalafonService.java +++ b/src/java/trismegistoplanilla/servicesMysql/EscalafonService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EscalafonDAO; public class EscalafonService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); EscalafonDAO dao = daoFactory.getEscalafonDAO(); public JSONObject obtenerEscalafonAreaCargoTipoPago(AreaCargoTipoPagoBean actp) { diff --git a/src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java b/src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java index 47c48ed..7626cd5 100644 --- a/src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java +++ b/src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoCivilDAO; public class EstadoCivilService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); EstadoCivilDAO service = daoFactory.getEstadoCivilDAO(); public JSONObject listarEstadoCivil() { diff --git a/src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java b/src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java index 829f9d7..003c69f 100644 --- a/src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java +++ b/src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoEstudioDAO; public class EstadoEstudioService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); EstadoEstudioDAO service = daoFactory.getEstadoEstudioDAO(); public JSONObject validarExistenciaEstadoEstudio(EstadoEstudioBean estadoEstudio) { diff --git a/src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java b/src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java index 935f45c..b84f259 100644 --- a/src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java +++ b/src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoFichaDAO; public class EstadoFichaService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); EstadoFichaDAO objEstadoFichaDAO = factory.getEstadoFichaDAO(); public JSONObject obtenerCodigoEstadoFicha(EstadoFichaBean ef) { diff --git a/src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java b/src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java index 41a4e43..21cc2a9 100644 --- a/src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java +++ b/src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExpedienteDAO; public class ExpedienteService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); ExpedienteDAO dao = daoFactory.getExpedienteDAO(); public JSONObject listarTipoExpedientes() { diff --git a/src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java b/src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java index 78f1ae8..2e193ee 100644 --- a/src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java +++ b/src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExperienciaLaboralDAO; public class ExperienciaLaboralService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); ExperienciaLaboralDAO service = daoFactory.getExperienciaLaboralDAO(); public JSONObject obtenerExperienciaLaboralPorPersona(PersonaBean persona) { diff --git a/src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java b/src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java index dec48db..64a2cf4 100644 --- a/src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java +++ b/src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java @@ -12,7 +12,7 @@ import trismegistoplanilla.dao.FichaLaboralDAO; public class FichaLaboralService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); FichaLaboralDAO objFichaLaboralDAO = factory.getFichaLaboralDAO(); public JSONObject registrarFichaLaboral(FichaLaboralBean fl, PersonaBean p, JSONArray jaExpediente, SueldoAdministrativoBean sa, SueldoDocenteBean sd, UsuarioBean u) { diff --git a/src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java b/src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java index 7023daa..304b923 100644 --- a/src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java +++ b/src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java @@ -16,7 +16,7 @@ import trismegistoplanilla.dao.FondoPensionDAO; */ public class FondoPensionService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); FondoPensionDAO service = daoFactory.getFondoPensionDAO(); public JSONObject listarFondoPension() { diff --git a/src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java b/src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java index bc52f93..2337305 100644 --- a/src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java +++ b/src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.FormacionAcademicaDAO; public class FormacionAcademicaService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); FormacionAcademicaDAO service = daoFactory.getFormacionAcademicaDAO(); public JSONObject obtenerFormacionAcademicaPorPersona(PersonaBean persona) { diff --git a/src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java b/src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java index 0c1e650..b18b6bc 100644 --- a/src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java +++ b/src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.LoteFichaDAO; public class LoteFichaService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); LoteFichaDAO dao = daoFactory.getLoteFichaDAO(); public JSONObject listarFichasDT(String draw, String length, String start, JSONObject json) { diff --git a/src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java b/src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java index 8987b5c..238f30e 100644 --- a/src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java +++ b/src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NacionalidadDAO; public class NacionalidadService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); NacionalidadDAO service = daoFactory.getNacionalidadDAO(); public JSONObject listarNacionalidad() { diff --git a/src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java b/src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java index af885a4..1486ef2 100644 --- a/src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java +++ b/src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstadoDAO; public class NivelEstadoService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); NivelEstadoDAO service = daoFactory.getNivelEstadoDAO(); public JSONObject obtenerNivelEstado(NivelEstadoBean nivelEstado) { diff --git a/src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java b/src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java index 68d2094..9edb633 100644 --- a/src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java +++ b/src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstudioDAO; public class NivelEstudioService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); NivelEstudioDAO service = daoFactory.getNivelEstudioDAO(); public JSONObject validarExistenciaNivelEstudio(NivelEstudioBean nivelEstudio) { diff --git a/src/java/trismegistoplanilla/servicesMysql/ParentescoService.java b/src/java/trismegistoplanilla/servicesMysql/ParentescoService.java index f55e088..5ec12f3 100644 --- a/src/java/trismegistoplanilla/servicesMysql/ParentescoService.java +++ b/src/java/trismegistoplanilla/servicesMysql/ParentescoService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ParentescoDAO; public class ParentescoService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); ParentescoDAO service = daoFactory.getParentescoDAO(); public JSONObject listarParentesco() { diff --git a/src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java b/src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java index 2083386..a996ba2 100644 --- a/src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java +++ b/src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java @@ -6,7 +6,7 @@ import trismegistoplanilla.dao.ReportePersonalDAO; public class ReportePersonalService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); ReportePersonalDAO objReporte = factory.getReportePersonalDAO(); public JSONObject validarExistenciaFilas(JSONObject jsonResult) { diff --git a/src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java b/src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java index cce365c..d6d1381 100644 --- a/src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java +++ b/src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java @@ -6,7 +6,7 @@ import trismegistoplanilla.dao.TipoEstadoFichaDAO; public class TipoEstadoFichaService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); TipoEstadoFichaDAO objTipoEstadoFichaDAO = factory.getTipoEstadoFichaDAO(); public JSONObject listarTipoEstadoFicha() { diff --git a/src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java b/src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java index 7048c4c..796ce71 100644 --- a/src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java +++ b/src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.TipoExpedienteDAO; public class TipoExpedienteService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); TipoExpedienteDAO obj = factory.getTipoExpedienteDAO(); public JSONObject listarTipoExpediente() { diff --git a/src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java b/src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java index 6af8ac2..688b54d 100644 --- a/src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java +++ b/src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java @@ -8,7 +8,7 @@ import trismegistoplanilla.dao.TipoPagoDAO; public class TipoPagoService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); TipoPagoDAO objTipoPago = factory.getTipoPagoDAO(); public JSONObject listarTipoPago(AreaCargoBean ac) { diff --git a/src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java b/src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java index 46eacfe..8ae8506 100644 --- a/src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java +++ b/src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java @@ -7,46 +7,46 @@ import trismegistoplanilla.dao.TokenFichaDAO; public class TokenFichaService { - DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); - TokenFichaDAO objTokenFichaDAO = factory.getTokenFichaDAO(); + DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); + TokenFichaDAO objTokenFichaDAO = factory.getTokenFichaDAO(); - public JSONObject validarTokenURL(TokenFichaBean tf) { - JSONObject jsonObjValidarTokenURL = null; - try { - jsonObjValidarTokenURL = objTokenFichaDAO.validarTokenURL(tf); - } catch (Exception e) { - e.printStackTrace(); - } - return jsonObjValidarTokenURL; - } + public JSONObject validarTokenURL(TokenFichaBean tf) { + JSONObject jsonObjValidarTokenURL = null; + try { + jsonObjValidarTokenURL = objTokenFichaDAO.validarTokenURL(tf); + } catch (Exception e) { + e.printStackTrace(); + } + return jsonObjValidarTokenURL; + } - public JSONObject validarToken(TokenFichaBean tf) { - JSONObject jsonObjValidarExistenciaToken = null; - try { - jsonObjValidarExistenciaToken = objTokenFichaDAO.validarToken(tf); - } catch (Exception e) { - e.printStackTrace(); - } - return jsonObjValidarExistenciaToken; - } + public JSONObject validarToken(TokenFichaBean tf) { + JSONObject jsonObjValidarExistenciaToken = null; + try { + jsonObjValidarExistenciaToken = objTokenFichaDAO.validarToken(tf); + } catch (Exception e) { + e.printStackTrace(); + } + return jsonObjValidarExistenciaToken; + } - public JSONObject desactivarToken(TokenFichaBean tf) { - JSONObject jsonObjDesactivarToken = null; - try { - jsonObjDesactivarToken = objTokenFichaDAO.desactivarToken(tf); - } catch (Exception e) { - e.printStackTrace(); - } - return jsonObjDesactivarToken; - } + public JSONObject desactivarToken(TokenFichaBean tf) { + JSONObject jsonObjDesactivarToken = null; + try { + jsonObjDesactivarToken = objTokenFichaDAO.desactivarToken(tf); + } catch (Exception e) { + e.printStackTrace(); + } + return jsonObjDesactivarToken; + } - public JSONObject obtenerSedeAreaCargo(JSONObject datos) { - JSONObject jsonReturn = null; - try { - jsonReturn = objTokenFichaDAO.obtenerSedeAreaCargo(datos); - } catch (Exception e) { - e.printStackTrace(); - } - return jsonReturn; - } + public JSONObject obtenerSedeAreaCargo(JSONObject datos) { + JSONObject jsonReturn = null; + try { + jsonReturn = objTokenFichaDAO.obtenerSedeAreaCargo(datos); + } catch (Exception e) { + e.printStackTrace(); + } + return jsonReturn; + } } diff --git a/src/java/trismegistoplanilla/servicesMysql/UbigeoService.java b/src/java/trismegistoplanilla/servicesMysql/UbigeoService.java index 8e1946d..dfdd0b6 100644 --- a/src/java/trismegistoplanilla/servicesMysql/UbigeoService.java +++ b/src/java/trismegistoplanilla/servicesMysql/UbigeoService.java @@ -7,7 +7,7 @@ import trismegistoplanilla.dao.UbigeoDAO; public class UbigeoService { - DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.SQL_SERVER); + DAOFactory daoFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL); UbigeoDAO service = daoFactory.getUbigeoDAO(); public JSONObject listarDepartamento() { -- libgit2 0.26.0