public class MetaWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_DATA |
static String |
ID_NAMESPACE |
static String |
ID_TIMESTAMP |
static String |
ID_VERSION |
| Constructor and Description |
|---|
MetaWrapper(long version,
String namespace,
Object data,
Date timestamp) |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.JsonNode |
getData(com.fasterxml.jackson.databind.JsonNode node)
Returns the data node from a wrapped JsonNode
|
static String |
getNamespace(com.fasterxml.jackson.databind.JsonNode node)
Returns the namespace from a wrapped JsonNode
|
static Date |
getTimestamp(com.fasterxml.jackson.databind.JsonNode node)
Returns the timestamp from a wrapped JsonNode
|
static Long |
getVersion(com.fasterxml.jackson.databind.JsonNode node)
Returns the source version from a wrapped JsonNode
|
static void |
setVersion(com.fasterxml.jackson.databind.JsonNode node,
Long version)
Sets the version on a wrapped JsonNode
|
public static final String ID_VERSION
public static final String ID_NAMESPACE
public static final String ID_DATA
public static final String ID_TIMESTAMP
public static com.fasterxml.jackson.databind.JsonNode getData(com.fasterxml.jackson.databind.JsonNode node)
public static String getNamespace(com.fasterxml.jackson.databind.JsonNode node)
public static Long getVersion(com.fasterxml.jackson.databind.JsonNode node)
public static void setVersion(com.fasterxml.jackson.databind.JsonNode node,
Long version)
public static Date getTimestamp(com.fasterxml.jackson.databind.JsonNode node)
Copyright © 2015. All rights reserved.