public class TombstoneUtil extends Object
Constructor and Description |
---|
TombstoneUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> Boolean |
getTombstone(T domainObject)
Attempts to get boolean from
domainObject by looking for a
RiakTombstone annotated field. |
static <T> T |
setTombstone(T domainObject,
boolean isTombstone)
|
public static <T> T setTombstone(T domainObject, boolean isTombstone) throws ConversionException
T
- the type of domainObject
domainObject
- the object to inject the key intoisTombstone
- the boolean to injectdomainObject
with RiakTombstone
annotated field
set to isTombstone
ConversionException
- if there is a Riaktombstone
annotated field but it cannot
be set to the value of isTombstone
public static <T> Boolean getTombstone(T domainObject)
domainObject
by looking for a
RiakTombstone
annotated field. If non-present it simply returns
null
T
- the type of domainObject
domainObject
- the object to search for a keydomainObject
's
RiakTombstone
field or null
Copyright © 2013. All Rights Reserved.