org.springframework.datastore.keyvalue.mapping
Class KeyValue

java.lang.Object
  extended by org.springframework.datastore.keyvalue.mapping.KeyValue

public class KeyValue
extends Object

A KeyValue is a used to define the key used for a particular value

Since:
1.0

Constructor Summary
KeyValue()
           
KeyValue(String key)
           
 
Method Summary
 javax.persistence.FetchType getFetchStrategy()
           
 String getKey()
           
 boolean isIndex()
           
 void setFetchStrategy(javax.persistence.FetchType fetchStrategy)
           
 void setIndex(boolean index)
          Whether this property is index
 void setKey(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue()

KeyValue

public KeyValue(String key)
Method Detail

getKey

public String getKey()

setKey

public void setKey(String key)

isIndex

public boolean isIndex()
Returns:
Whether this property is index

setIndex

public void setIndex(boolean index)
Whether this property is index

Parameters:
index - Sets whether to index the property or not

getFetchStrategy

public javax.persistence.FetchType getFetchStrategy()

setFetchStrategy

public void setFetchStrategy(javax.persistence.FetchType fetchStrategy)