[EDIT] change sqlserverdao to mysqldao

parent 68af85cb
......@@ -68,6 +68,7 @@ public class AreaCargoMysqlDAO implements AreaCargoDAO {
e.printStackTrace();
}
}
JOObtenerAreaCargo = new JSONObject(response);
return JOObtenerAreaCargo;
......
......@@ -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 {
......
......@@ -425,7 +425,6 @@ public class FichaMysqlDAO implements FichaDAO {
ResultSet rsObtenerEstadoFicha = null;
try {
// conectarse a la Variables.BD_NAME de datos
conexion = MysqlDAOFactory.obtenerConexion(Variables.MYSQL_NUEVO_BD_NAME);
conexion.setAutoCommit(false);
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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() {
......
......@@ -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() {
......
......@@ -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) {
......
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment