public int inserir(Editor e){
        Connection conn = null;
        PreparedStatement pstm = null;
        int retorno = -1;
        try{
            conn = ConnectionFactory.getConnection();
            pstm = conn.prepareStatement(INSERT, Statement.RETURN_GENERATED_KEYS);
            pstm.setString(1, e.getNome());
            pstm.setString(3, e.getEmail());
            pstm.setString(4, e.getUrl());
            pstm.setString(5, e.getCidade());
            pstm.setString(6, e.getEndereco());
            pstm.execute();
            try(ResultSet rs = pstm.getGeneratedKeys()){
                if(rs.next()){
                    retorno = rs.getInt(1);
                }
            }
        }catch(Exception ex){
            JOptionPane.showMessageDialog(null,"Erro ao adicionar um cadastro "+ e);
        }finally{
            try{
                ConnectionFactory.closeConnection(conn, pstm);
            }catch(Exception ex){
                JOptionPane.showMessageDialog(null,"Erro ao desconetar ao banco " + ex);
            }
        }
        return retorno;
    }