コード例 #1
0
 /* (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);
   }
 }
コード例 #2
0
 /* (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());
 }