Class DiscriminatorLookup


  • @MorphiaInternal
    public final class DiscriminatorLookup
    extends Object
    Provides lookup capabilities to find a type by its discriminator
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • DiscriminatorLookup

        public DiscriminatorLookup()
    • Method Detail

      • addModel

        public void addModel​(EntityModel entityModel)
        Adds a model to the map
        Parameters:
        entityModel - the model
      • lookup

        public Class<?> lookup​(String discriminator)
        Looks up a discriminator value
        Parameters:
        discriminator - the value to search witih
        Returns:
        the mapped class