Class AbstractDiscriminatorRegistry<T,X extends T>

java.lang.Object
com.atlassian.bamboo.persistence3.AbstractDiscriminatorRegistry<T,X>
Direct Known Subclasses:
PlanDiscriminatorRegistry, ResultsSummaryDiscriminatorRegistry

public abstract class AbstractDiscriminatorRegistry<T,X extends T> extends Object
  • Constructor Details

    • AbstractDiscriminatorRegistry

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

    • 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