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 type
T, where annotating
the class with Entity
and its friends is not possible.- Since:
- 4.0
- Author:
- Anindya Chatterjee
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGets entity name.Gets the entity type of the decorator.Gets id field declaration.Gets index fields declaration.
-
Method Details
-
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
Gets entity name.- Returns:
- the entity name
-