Interface EntityNameResolver<T extends PersistenceEntity,​R extends PersistenceEntity>

  • Type Parameters:
    T - the type of entity whose name to be resolved
    R - 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.Serializable
    EntityNameResolver that resolves the name of an entity. The resolved names are often used for display.
    Since:
    3.7
    • 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