Package org.dizitart.no2.repository
Interface EntityDecorator<T>
-
- Type Parameters:
T
- the type parameter
public interface EntityDecorator<T>
An interface that can be used to implement a decorator for an entity class of typeT
, where annotating the class with
Entity
and its friends is not possible.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
Nitrite.getRepository(EntityDecorator)
,Nitrite.getRepository(EntityDecorator, String)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getEntityName()
Gets entity name.Class<T>
getEntityType()
Gets the entity type of the decorator.EntityId
getIdField()
Gets id field declaration.List<EntityIndex>
getIndexFields()
Gets index fields declaration.
-
-
-
Method Detail
-
getEntityType
Class<T> getEntityType()
Gets the entity type of the decorator.- Returns:
- the entity type
-
getIdField
EntityId getIdField()
Gets id field declaration.- Returns:
- the id field
-
getIndexFields
List<EntityIndex> getIndexFields()
Gets index fields declaration.- Returns:
- the index fields
-
getEntityName
default String getEntityName()
Gets entity name.- Returns:
- the entity name
-
-