Spring Data Key-Value

org.springframework.data.keyvalue.riak.core
Class RiakMetaData

java.lang.Object
  extended by org.springframework.data.keyvalue.riak.core.RiakMetaData
All Implemented Interfaces:
KeyValueStoreMetaData

public class RiakMetaData
extends Object
implements KeyValueStoreMetaData

An implementation of KeyValueStoreMetaData for Riak.

Author:
J. Brisbin

Constructor Summary
RiakMetaData(Map<String,Object> properties)
           
RiakMetaData(MediaType mediaType, Map<String,Object> properties)
           
RiakMetaData(MediaType mediaType, Map<String,Object> properties, String bucket, String key)
           
 
Method Summary
 String getBucket()
           
 MediaType getContentType()
          Get the Content-Type of this object.
 String getKey()
           
 long getLastModified()
           
 Map<String,Object> getProperties()
          Get the arbitrary properties for this object.
 void setBucket(String bucket)
           
 void setKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RiakMetaData

public RiakMetaData(Map<String,Object> properties)

RiakMetaData

public RiakMetaData(MediaType mediaType,
                    Map<String,Object> properties)

RiakMetaData

public RiakMetaData(MediaType mediaType,
                    Map<String,Object> properties,
                    String bucket,
                    String key)
Method Detail

setBucket

public void setBucket(String bucket)

setKey

public void setKey(String key)

getBucket

public String getBucket()
Specified by:
getBucket in interface KeyValueStoreMetaData

getKey

public String getKey()
Specified by:
getKey in interface KeyValueStoreMetaData

getContentType

public MediaType getContentType()
Description copied from interface: KeyValueStoreMetaData
Get the Content-Type of this object.

Specified by:
getContentType in interface KeyValueStoreMetaData
Returns:

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface KeyValueStoreMetaData

getProperties

public Map<String,Object> getProperties()
Description copied from interface: KeyValueStoreMetaData
Get the arbitrary properties for this object.

Specified by:
getProperties in interface KeyValueStoreMetaData
Returns:

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.