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 domainObjectdomainObject - the object to inject the key intoisTombstone - the boolean to injectdomainObject with RiakTombstone annotated field
set to isTombstoneConversionException - if there is a Riaktombstone annotated field but it cannot
be set to the value of isTombstonepublic static <T> Boolean getTombstone(T domainObject)
domainObject by looking for a
RiakTombstone annotated field. If non-present it simply returns
nullT - the type of domainObjectdomainObject - the object to search for a keydomainObject's
RiakTombstone field or nullCopyright © 2014. All Rights Reserved.