public boolean insertaCatalogoFamilia(String descrip, int id) {
        

          ConexionBD con1 = new ConexionBD();
        String tabla = "catalogo_familia";
        
        int id1 = con1.regresaMaxCatalogo(tabla) +1;
        
        try {
            Class.forName(driver);
            Connection con = DriverManager.getConnection(connectString, user, password);
            PreparedStatement query = con.prepareStatement("insert into  catalogo_familia (clave_familia , descripcion, clave_tipo) values ( "
               + id1     + " , '" + descrip + "' , " + id + ");");

            ResultSet rset = query.executeQuery();

        } catch (SQLException | java.lang.ClassNotFoundException e) {
            
            System.out.println(e.getMessage());
            
            return false;
        }

       return true; 
    }