/* (non-Javadoc) * @see org.javarosa.core.services.storage.IStorageUtility#write(org.javarosa.core.services.storage.Persistable) */ public void write(Persistable p) throws StorageFullException { if (p.getID() != -1) { this.data.put(DataUtil.integer(p.getID()), (T) p); syncMeta(); } else { p.setID(curCount); this.add((T) p); } }
/* (non-Javadoc) * @see org.javarosa.core.services.storage.IStorageUtility#remove(org.javarosa.core.services.storage.Persistable) */ public void remove(Persistable p) { this.read(p.getID()); }