public  boolean insertTicket(Ticket tic) throws SQLException{
    Connection con = getConnection();
    
    ArrayList<Ticket> ticket = getTicket(tic);
 
    
    if (ticket.size()!=0) {
        return false;
    }
    con.createStatement().executeUpdate("INSERT INTO ticket("+campos_ticket+") VALUES('"
                + tic.getPnr()+"','"
                + tic.getNumFile()+"','"
                + tic.getTicket()+"','"
                + tic.getOldTicket()+"','"
                + tic.getCodEmd()+"','"
                + tic.getFechaEmisionSql()+"','"
                + tic.getFechaAnulacionSql()+"','"
                + tic.getFechaReemisionSql()+"','"
                + tic.getPosicion()+"','"
                + tic.getNombrePasajero()+"','"
                + tic.getTipoPasajero()+"','"
                + tic.getcLineaAerea()+"','"
                + tic.getRuta()+"','"
                + tic.getMoneda()+"','"
                + tic.getValorNeto()+"','"
                + tic.getValorTasas()+"','"
                + tic.getValorFinal()+"','"
                + tic.getComision()+"','"
                + tic.getfPago()+"','"
                + tic.getTipo()+"','"
                + tic.getEstado()+"','"
                + "0" +"','"
                + tic.getGds()
                + "'"
                +")");    
    
        return true;
    }