Interface MetamodelBuildingContext
- All Known Implementing Classes:
MetamodelBuildingContextImpl
public interface MetamodelBuildingContext
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddManagedViewType(ViewMapping viewMapping, EmbeddableOwner embeddableMapping, ManagedViewTypeImplementor<?> managedViewType) voidcheckMultisetSupport(AbstractAttribute<?, ?> attribute, BasicUserType<?> userType) voidcheckMultisetSupport(List<AbstractAttribute<?, ?>> parents, AbstractAttribute<?, ?> attribute, BasicUserType<?> userType) createMacroAwareExpressionFactory(String viewRoot) findSubtypes(Class<?> entityViewClass) findSupertypes(Class<?> entityViewClass) voidfinishViewType(ManagedViewTypeImplementor<?> managedViewType) <X> Type<X>getBasicType(ViewMapping viewMapping, Type type, Class<?> classType, Set<Class<?>> possibleTypes) Map<Class<?>,CTEProvider> getFlushMode(Class<?> clazz, FlushMode defaultValue) getFlushStrategy(Class<?> clazz, FlushStrategy defaultValue) getManagedViewType(ViewMapping viewMapping, EmbeddableOwner embeddableMapping) getPossibleTargetTypes(Class<?> entityClass, javax.persistence.metamodel.Attribute<?, ?> rootAttribute, Annotation mapping, Map<String, javax.persistence.metamodel.Type<?>> rootTypes) Returns the possible target types for the mapping based on the given entity class.<X> Map<Class<?>,TypeConverter<?, X>> getTypeConverter(Class<X> type) getViewMapping(Class<?> entityViewClass) booleanbooleanbooleanbooleanisEntityView(Class<?> clazz) booleanbooleanvoidonViewTypeFinished(ManagedViewTypeImplementor<?> managedViewType, Runnable listener)
-
Method Details
-
getBasicUserTypeRegistry
BasicUserTypeRegistry getBasicUserTypeRegistry() -
getViewMappings
Collection<ViewMapping> getViewMappings() -
getViewMapping
-
getBasicType
-
getTypeConverter
-
getPossibleTargetTypes
List<ScalarTargetResolvingExpressionVisitor.TargetType> getPossibleTargetTypes(Class<?> entityClass, javax.persistence.metamodel.Attribute<?, ?> rootAttribute, Annotation mapping, Map<String, javax.persistence.metamodel.Type<?>> rootTypes) Returns the possible target types for the mapping based on the given entity class. If the mapping does not allow to determine the type,nullis returned.- Parameters:
entityClass- The entity classrootAttribute-mapping- The mapping annotation- Returns:
- The possible target types or
null
-
getJpqlFunctions
Map<String,JpqlFunction> getJpqlFunctions() -
getEntityMetamodel
EntityMetamodel getEntityMetamodel() -
getJpaProvider
JpaProvider getJpaProvider() -
getDbmsDialect
DbmsDialect getDbmsDialect() -
getExpressionFactory
ExpressionFactory getExpressionFactory() -
getTypeValidationExpressionFactory
ExpressionFactory getTypeValidationExpressionFactory() -
getTypeExtractionExpressionFactory
ExpressionFactory getTypeExtractionExpressionFactory() -
createMacroAwareExpressionFactory
-
isDisallowOwnedUpdatableSubview
boolean isDisallowOwnedUpdatableSubview() -
isStrictCascadingCheck
boolean isStrictCascadingCheck() -
isErrorOnInvalidPluralSetter
boolean isErrorOnInvalidPluralSetter() -
isCreateEmptyFlatViews
boolean isCreateEmptyFlatViews() -
getProxyFactory
ProxyFactory getProxyFactory() -
getFlushMode
-
getFlushStrategy
-
addError
-
hasErrors
boolean hasErrors() -
isEntityView
-
findSubtypes
-
findSupertypes
-
addManagedViewType
void addManagedViewType(ViewMapping viewMapping, EmbeddableOwner embeddableMapping, ManagedViewTypeImplementor<?> managedViewType) -
getManagedViewType
ManagedViewTypeImplementor<?> getManagedViewType(ViewMapping viewMapping, EmbeddableOwner embeddableMapping) -
finishViewType
-
onViewTypeFinished
-
getCteProviders
Map<Class<?>,CTEProvider> getCteProviders() -
checkMultisetSupport
void checkMultisetSupport(List<AbstractAttribute<?, ?>> parents, AbstractAttribute<?, ?> attribute, BasicUserType<?> userType) -
checkMultisetSupport
-