Class AbstractDiscriminatorRegistry<T,X extends T>
java.lang.Object
com.atlassian.bamboo.persistence3.AbstractDiscriminatorRegistry<T,X>
- Direct Known Subclasses:
PlanDiscriminatorRegistry
,ResultsSummaryDiscriminatorRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDiscriminatorForType
(Class<? extends T> aClass) Get the discriminator for the given Class.getDiscriminatorsForType
(Class<? extends T> aClass) Get the discriminators needed to lookup the givenClass
getTypeForDiscriminator
(@NotNull String discriminator) boolean
isConcretelyMappedType
(Class<? extends T> aClass) Tests if the provided type is concretely mapped
-
Constructor Details
-
AbstractDiscriminatorRegistry
public AbstractDiscriminatorRegistry() throws org.hibernate.MappingException- Throws:
org.hibernate.MappingException
-
-
Method Details
-
getBaseClass
-
getDiscriminatorsForType
Get the discriminators needed to lookup the givenClass
- Parameters:
aClass
-- Returns:
- discriminators
-
getDiscriminatorForType
Get the discriminator for the given Class.- Parameters:
aClass
-- Returns:
- discriminator
-
getTypeForDiscriminator
-
isConcretelyMappedType
Tests if the provided type is concretely mapped- Parameters:
aClass
-- Returns:
- true if the type is concretely mapped
-