Class IdentifierProvider

  • All Implemented Interfaces:
    OBProvidable, OBSingleton

    public class IdentifierProvider
    extends Object
    implements OBSingleton
    Provides the identifier/title of an object using the identifierProperties of the Entity. Note: the getIdentifier can also be generated in the java entity but the current approach makes it possible to change the identifier definition at runtime.
    Author:
    mtaal
    • Constructor Detail

      • IdentifierProvider

        public IdentifierProvider()
    • Method Detail

      • getIdentifier

        public String getIdentifier​(Object o)
        Returns the identifier of the object. The identifier is computed using the identifier properties of the Entity of the object. It is translated (if applicable) to the current language
        Parameters:
        o - the object for which the identifier is generated
        Returns:
        the identifier
      • getSeparator

        protected String getSeparator()