/** {@inheritDoc} */ @Override public boolean delete(@Nonnull final Object value) throws IOException { return delete(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); }
/** {@inheritDoc} */ @Override public boolean delete(@Nonnull final Object value) throws IOException { Constraint.isNotNull(value, "Value cannot be null"); return delete( AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); }
/** {@inheritDoc} */ @Override public boolean deleteWithVersion(@Positive final long version, @Nonnull final Object value) throws IOException, VersionMismatchException { return deleteWithVersion(version, AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); }
/** {@inheritDoc} */ @Override public Object read(@Nonnull final Object value) throws IOException { Constraint.isNotNull(value, "Value cannot be null"); return read(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); }
/** {@inheritDoc} */ @Override public boolean updateExpiration(@Nonnull final Object value) throws IOException { return updateExpiration(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override public boolean deleteWithVersion(@Positive final long version, @Nonnull final Object value) throws IOException, VersionMismatchException { Constraint.isNotNull(value, "Value cannot be null"); return deleteWithVersion( version, AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); }
/** {@inheritDoc} */ @Override public boolean updateExpiration(@Nonnull final Object value) throws IOException { Constraint.isNotNull(value, "Value cannot be null"); return updateExpiration( AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override public boolean update(@Nonnull final Object value) throws IOException { return update(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override public boolean create(@Nonnull final Object value) throws IOException { return create(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override @Nullable public Long updateWithVersion(@Positive final long version, @Nonnull final Object value) throws IOException, VersionMismatchException { return updateWithVersion(version, AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override @Nullable public Object read(@Nonnull final Object value) throws IOException { final StorageRecord record = read(AnnotationSupport.getContext(value), AnnotationSupport.getKey(value)); if (record != null) { AnnotationSupport.setValue(value, record.getValue()); AnnotationSupport.setExpiration(value, record.getExpiration()); return value; } return null; }
/** {@inheritDoc} */ @Override public boolean update(@Nonnull Object value) throws IOException { Constraint.isNotNull(value, "Value cannot be null"); return update( AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override public boolean create(@Nonnull Object value) throws IOException { Constraint.isNotNull(value, "Value cannot be null"); return create( AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }
/** {@inheritDoc} */ @Override public Long updateWithVersion(@Positive final long version, @Nonnull final Object value) throws IOException, VersionMismatchException { Constraint.isNotNull(value, "Value cannot be null"); return updateWithVersion( version, AnnotationSupport.getContext(value), AnnotationSupport.getKey(value), AnnotationSupport.getValue(value), AnnotationSupport.getExpiration(value)); }