public interface CollectionEntry extends TypedAccess, IndexedTypedAccess, Map<String,Object>, IAdaptable
| Modifier and Type | Interface and Description |
|---|---|
static class |
CollectionEntry.SpecialValue |
| Modifier and Type | Method and Description |
|---|---|
Optional<DocumentClass> |
getDocumentClass()
Retrieves the document class for the entry, if read.
|
int |
getNoteID()
Retrieves the note ID for the entry.
|
<T> T |
getSpecialValue(CollectionEntry.SpecialValue value,
Class<T> clazz,
T defaultValue)
Read meta data of the collection entry
|
String |
getUNID()
Retrieves the UNID associated with the entry, if it is a document.
|
boolean |
isCategory()
Determines whether the collection entry represents a category, as opposed to
a document or total row.
|
boolean |
isDocument()
Determines whether the collection entry represents a document, as opposed to
a category or total row.
|
Optional<Document> |
openDocument()
Open the database document for this collection entry
|
get, getAsList, getItemNames, hasItemget, getAsList, getIndexedValueCountclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesgetAdapterint getNoteID()
String getUNID()
boolean isCategory()
true if the entry represents a category; false
otherwiseboolean isDocument()
true if the entry represents a document; false
otherwise<T> T getSpecialValue(CollectionEntry.SpecialValue value, Class<T> clazz, T defaultValue)
T - type of return valuevalue - special value to readclazz - class of return valuedefaultValue - default value if not availableOptional<Document> openDocument()
Optional describing the document associated with this entry, or
an empty one if the entry does not represent a documentOptional<DocumentClass> getDocumentClass()
Optional describing this DocumentClass for the entry, or
an empty one if that is not applicableCopyright © 2019–2021 HCL. All rights reserved.