Interface EntityNameResolver<T extends PersistenceEntity,R extends PersistenceEntity>
-
- Type Parameters:
T- the type of entity whose name to be resolvedR- the entity type of the backingBean of the associated property
- All Superinterfaces:
java.io.Serializable
public interface EntityNameResolver<T extends PersistenceEntity,R extends PersistenceEntity> extends java.io.SerializableEntityNameResolver that resolves the name of an entity. The resolved names are often used for display.- Since:
- 3.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description I18NNamegetEntityName(T entity, EntityProperty<R> property)Get entity name.
-
-
-
Method Detail
-
getEntityName
I18NName getEntityName(T entity, EntityProperty<R> property) throws SystemException
Get entity name. If it is not localized, resource bundle will be used to translate the entity name for display. For example, to get customer display name for an Order, the entity is Customer (type T), the property is order.customer, and type R is Order.- Parameters:
entity- an entity for which to get name. It is the value of the associated property if the property is not null.property- its associated property, null if the entity is not associated with any property- Returns:
- entity name that is an I18NName
- Throws:
SystemException- throw if an error occurs
-
-