public class AnnotationInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationInfo.Builder |
Modifier and Type | Method and Description |
---|---|
<T> RiakIndexes |
getIndexes(RiakIndexes container,
T obj) |
<T> RiakLinks |
getLinks(RiakLinks container,
T obj) |
<T> BinaryValue |
getRiakBucketName(T obj) |
<T> BinaryValue |
getRiakBucketType(T obj) |
<T> String |
getRiakContentType(T obj) |
<T> BinaryValue |
getRiakKey(T obj)
Returns the key.
|
<T> Boolean |
getRiakTombstone(T obj) |
<T> VClock |
getRiakVClock(T obj) |
<T> RiakUserMetadata |
getUsermetaData(RiakUserMetadata container,
T obj) |
boolean |
hasRiakVClock() |
<T> void |
setIndexes(RiakIndexes indexes,
T obj) |
<T> void |
setLinks(RiakLinks links,
T obj) |
<T> void |
setRiakBucketName(T obj,
BinaryValue bucketName) |
<T> void |
setRiakBucketType(T obj,
BinaryValue bucketType) |
<T> void |
setRiakContentType(T obj,
String contentType) |
<T> void |
setRiakKey(T obj,
BinaryValue key) |
<T> void |
setRiakLastModified(T obj,
Long lastModified) |
<T> void |
setRiakTombstone(T obj,
Boolean isDeleted) |
<T> void |
setRiakVClock(T obj,
VClock vclock) |
<T> void |
setRiakVTag(T obj,
String vtag) |
<T> void |
setUsermetaData(RiakUserMetadata userMetadata,
T obj)
Populates an @RiakUsermeta annotated domain object with the User metadata.
|
public <T> BinaryValue getRiakKey(T obj)
The @RiakKey annotation allows for any type to be used. this method will call the object's toString() method to return a String.
T
- the type of the domain objectobj
- the domain objectpublic <T> void setRiakKey(T obj, BinaryValue key)
public <T> BinaryValue getRiakBucketName(T obj)
public <T> void setRiakBucketName(T obj, BinaryValue bucketName)
public <T> BinaryValue getRiakBucketType(T obj)
public <T> void setRiakBucketType(T obj, BinaryValue bucketType)
public boolean hasRiakVClock()
public <T> VClock getRiakVClock(T obj)
public <T> void setRiakVClock(T obj, VClock vclock)
public <T> Boolean getRiakTombstone(T obj)
public <T> void setRiakTombstone(T obj, Boolean isDeleted)
public <T> String getRiakContentType(T obj)
public <T> void setRiakContentType(T obj, String contentType)
public <T> void setRiakLastModified(T obj, Long lastModified)
public <T> void setRiakVTag(T obj, String vtag)
public <T> RiakUserMetadata getUsermetaData(RiakUserMetadata container, T obj)
public <T> void setUsermetaData(RiakUserMetadata userMetadata, T obj)
T
- userMetadata
- obj
- public <T> RiakIndexes getIndexes(RiakIndexes container, T obj)
T
- The domain object typeobj
- the domain objectRiakIndexes
made of the values of the RiakIndex
annotated fields and methods.public <T> void setIndexes(RiakIndexes indexes, T obj)
T
- indexes
- the RiakIndexes to copy to the domain objectobj
- the domain object to set indexes onpublic <T> void setLinks(RiakLinks links, T obj)
Copyright © 2016. All rights reserved.