Package org.dizitart.no2.repository
Class EntityId
java.lang.Object
org.dizitart.no2.repository.EntityId
Represents the unique identifier for an entity in an
ObjectRepository.
An entity ID consists of a field name and optional sub-fields. If sub-fields are present, the ID is considered to be embedded.
- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUniqueFilter(Object value, NitriteMapper nitriteMapper) Creates a unique filter for the entity id.String[]Returns the embedded field names of the id field.Returns a list of encoded field names.Returns the name of the id field.booleanChecks if the entity id is an embedded id.
-
Constructor Details
-
EntityId
-
-
Method Details
-
getEncodedFieldNames
Returns a list of encoded field names.- Returns:
- a list of encoded field names.
-
isEmbedded
public boolean isEmbedded()Checks if the entity id is an embedded id.- Returns:
- true if the entity id is embedded; false otherwise.
-
createUniqueFilter
Creates a unique filter for the entity id.- Parameters:
value- the value of the id.nitriteMapper- the nitrite mapper.- Returns:
- the unique filter.
-
getFieldName
Returns the name of the id field. -
getEmbeddedFields
Returns the embedded field names of the id field.
-