/** Load attributes from cache or * from disk. * @param name of folder to load data from */ private Table loadTable(String name) { //throws IOException { Reference r = (Reference) getCache().get(name); if (r != null) { Table m = (Table) r.get(); if (m != null) { return m; } } // have to load new table Table t = load(name); t.attach(name, this); getCache().put(name, new SoftReference(t)); return t; }
/** Load attributes from cache or * from disk. * @param name of folder to load data from */ private Table loadTable(String name) { //throws IOException { Reference r = (Reference)getCache ().get (name); if (r != null) { Table m = (Table)r.get (); if (m != null) { return m; } } // have to load new table Table t = load (name); t.attach (name, this); getCache ().put (name, new SoftReference (t)); return t; }
/** Load attributes from cache or * from disk. * @param name of folder to load data from */ private Table loadTable(String name) { //throws IOException { Reference r = (Reference)getCache ().get (name); if (r != null) { Table m = (Table)r.get (); if (m != null) { return m; } } // have to load new table Table t = load (name); t.attach (name, this); getCache ().put (name, new SoftReference (t)); return t; }