Examples of KeyValueStoreMetaData


Examples of org.springframework.data.keyvalue.riak.convert.KeyValueStoreMetaData

  }

  protected MediaType extractMediaType(Object value) {
    MediaType mediaType = (value instanceof byte[] ? MediaType.APPLICATION_OCTET_STREAM : MediaType.APPLICATION_JSON);
    if (null != value && value.getClass().getAnnotations().length > 0) {
      KeyValueStoreMetaData meta = value.getClass()
          .getAnnotation(KeyValueStoreMetaData.class);
      if (null != meta) {
        // Use the media type specified on the annotation.
        mediaType = MediaType.parseMediaType(meta.mediaType());
      }
    }
    return mediaType;
  }
View Full Code Here

Examples of org.springframework.data.keyvalue.riak.core.KeyValueStoreMetaData

    return false;
  }

  @Override
  public long lastModified() {
    KeyValueStoreMetaData meta = riak.getMetaData(bucket, key);
    return (null != meta ? meta.getLastModified() : null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.