Package com.flowable.indexing.impl
Class ObjectNodeIndexedDataObject
java.lang.Object
com.flowable.indexing.impl.ObjectNodeIndexedDataObject
- All Implemented Interfaces:
IndexedDataObject
public class ObjectNodeIndexedDataObject extends java.lang.Object implements IndexedDataObject
-
Constructor Summary
Constructors Constructor Description ObjectNodeIndexedDataObject(java.lang.String index, java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, java.lang.Long externalVersion, com.fasterxml.jackson.databind.node.ObjectNode scriptNode) -
Method Summary
Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNodegetData()The json data, represented asObjectNodethat will be indexed in the index.java.lang.LonggetExternalVersion()External version of the datajava.lang.StringgetId()The id of this data object to be indexed.java.lang.StringgetIndex()The index where the data will be indexed.com.fasterxml.jackson.databind.node.ObjectNodegetScript()Update scriptbooleanhasExternalVersion()Check if object has external version
-
Constructor Details
-
ObjectNodeIndexedDataObject
public ObjectNodeIndexedDataObject(java.lang.String index, java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, java.lang.Long externalVersion, com.fasterxml.jackson.databind.node.ObjectNode scriptNode)
-
-
Method Details
-
getIndex
public java.lang.String getIndex()Description copied from interface:IndexedDataObjectThe index where the data will be indexed.- Specified by:
getIndexin interfaceIndexedDataObject
-
getId
public java.lang.String getId()Description copied from interface:IndexedDataObjectThe id of this data object to be indexed. This id is used for indexing and retrieval by id, so make sure it is unique at least within the index it is used.- Specified by:
getIdin interfaceIndexedDataObject- Returns:
- the id of this indexed data object, which must be unique within at least the index it is used
-
getData
public com.fasterxml.jackson.databind.node.ObjectNode getData()Description copied from interface:IndexedDataObjectThe json data, represented asObjectNodethat will be indexed in the index.- Specified by:
getDatain interfaceIndexedDataObject
-
hasExternalVersion
public boolean hasExternalVersion()Description copied from interface:IndexedDataObjectCheck if object has external version- Specified by:
hasExternalVersionin interfaceIndexedDataObject
-
getExternalVersion
public java.lang.Long getExternalVersion()Description copied from interface:IndexedDataObjectExternal version of the data- Specified by:
getExternalVersionin interfaceIndexedDataObject
-
getScript
public com.fasterxml.jackson.databind.node.ObjectNode getScript()Description copied from interface:IndexedDataObjectUpdate script- Specified by:
getScriptin interfaceIndexedDataObject
-