Class AbstractDiscriminatorRegistry<T,​X extends T>

    • Constructor Detail

      • AbstractDiscriminatorRegistry

        public AbstractDiscriminatorRegistry()
                                      throws org.hibernate.MappingException
        Throws:
        org.hibernate.MappingException
    • Method Detail

      • getBaseClass

        protected abstract Class<X> getBaseClass()
      • getDiscriminatorsForType

        public Set<String> getDiscriminatorsForType​(Class<? extends T> aClass)
        Get the discriminators needed to lookup the given Class
        Parameters:
        aClass -
        Returns:
        discriminators
      • getDiscriminatorForType

        public String getDiscriminatorForType​(Class<? extends T> aClass)
        Get the discriminator for the given Class.
        Parameters:
        aClass -
        Returns:
        discriminator
      • getTypeForDiscriminator

        @Nullable
        public @Nullable Class<? extends T> getTypeForDiscriminator​(@NotNull
                                                                    @NotNull String discriminator)
      • isConcretelyMappedType

        public boolean isConcretelyMappedType​(Class<? extends T> aClass)
        Tests if the provided type is concretely mapped
        Parameters:
        aClass -
        Returns:
        true if the type is concretely mapped