@@ -0,0 +1,944 @@
+package Factory;%0A%0Aimport DB.DB;%0Aimport DBViews.DBVAutor;%0Aimport Entily.Autor;%0Aimport java.util.Collection;%0Aimport java.util.Map;%0A%0A%0Apublic class AutorFactory %7B%0A    %0A    private transient final DB DB;%0A    private transient final DBVAutor views;%0A    %0A    transient Map%3CString, Autor%3E cache;%0A%0A    public AutorFactory(String dir)%7B%0A        DB = new DB(dir);%0A        views = new DBVAutor(DB);%0A        this.cache = views.getCache();%0A    %7D%0A%0A    public void close()%7B%0A        DB.close();%0A    %7D%0A    %0A    public void store(Autor a)%7B%0A        Autor put = cache.put(a.getCodAutor(), a);%0A    %7D%0A    %0A    public void excluir(Autor a)%7B%0A        cache.remove(a.getCodAutor());%0A    %7D%0A    %0A    public Autor lookup(String codAutor)%7B%0A        Autor autor = null;%0A        if(cache.get(codAutor) != null)%7B%0A            autor = cache.get(codAutor);%0A        %7D%0A        return autor;%0A    %7D%0A    %0A    public Collection%3CAutor%3E getAll()%7B%0A        return cache.values();%0A    %7D%0A    %0A%7D%0A

Create AutorFactory.java