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