383940414243444546
@Override public void store(Serializable key, T value) throws ObjectStoreException { if (store.containsKey(key)) { throw new ObjectAlreadyExistsException(new Exception()); } store.put(key, value); }
585960616263646566
@Override public T remove(Serializable key) throws ObjectStoreException { if (!store.containsKey(key)) { throw new ObjectAlreadyExistsException(new Exception()); } return store.remove(key); }
133134135136137138139140
{ this.update(this.getInsertQuery(), key, value); } catch (ObjectStoreException e) { throw new ObjectAlreadyExistsException(e); } }