Interface ViewMapping
- All Superinterfaces:
Comparable<ViewMapping>,EntityViewMapping
- All Known Implementing Classes:
ConvertedViewMapping,ViewMappingImpl
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstructor(ConstructorMapping constructorMapping) Set<Class<? extends CTEProvider>>javax.persistence.metamodel.ManagedType<?>getManagedType(MetamodelBuildingContext context) getManagedViewType(MetamodelBuildingContext context, EmbeddableOwner embeddableMapping) Map<String,Class<? extends ViewFilterProvider>> getViewRoots(MetamodelBuildingContext context) getViewRootTypes(MetamodelBuildingContext context) voidinitializeViewMappings(MetamodelBuildingContext context, Runnable finishListener) booleanisCreatable(MetamodelBuildingContext context) booleanvoidonInitializeViewMappingsFinished(Runnable finishListener) voidsetCteProviders(Set<Class<? extends CTEProvider>> cteProviders) voidsetDefaultBatchSize(Integer defaultBatchSize) voidsetEntityViewRoots(Set<EntityViewRootMapping> entityViewRoots) voidsetIdAttributeMapping(MethodAttributeMapping idAttribute) voidsetInheritanceMapping(String inheritanceMapping) voidsetInheritanceSubtypesResolved(boolean inheritanceSubtypesResolved) voidsetSpecialMethods(List<Method> specialMethods) voidsetVersionAttributeMapping(MethodAttributeMapping versionAttribute) voidsetViewFilterProviders(Map<String, Class<? extends ViewFilterProvider>> viewFilterProviders) booleanvalidateDependencies(MetamodelBuildingContext context, Set<Class<?>> dependencies, AttributeMapping originatingAttributeMapping, Class<?> excludeEntityViewClass, boolean reportError) Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.blazebit.persistence.view.spi.EntityViewMapping
getAttributes, getConstructors, getEntityClass, getEntityViewClass, getFlushMode, getFlushStrategy, getLockMode, getLockOwner, getPostCommitMethod, getPostCommitTransitions, getPostConvertMethod, getPostCreateMethod, getPostLoadMethod, getPostPersistMethod, getPostRemoveMethod, getPostRollbackMethod, getPostRollbackTransitions, getPostUpdateMethod, getPrePersistMethod, getPreRemoveMethod, getPreUpdateMethod, isCreatable, isUpdatable, isValidatePersistability, setCreatable, setEntityClass, setFlushMode, setFlushStrategy, setIdAttribute, setLockMode, setLockOwner, setPostCommitMethod, setPostCommitTransitions, setPostConvertMethod, setPostCreateMethod, setPostLoadMethod, setPostPersistMethod, setPostRemoveMethod, setPostRollbackMethod, setPostRollbackTransitions, setPostUpdateMethod, setPrePersistMethod, setPreRemoveMethod, setPreUpdateMethod, setUpdatable, setValidatePersistability, setVersionAttribute
-
Method Details
-
getDefaultInheritanceViewMapping
InheritanceViewMapping getDefaultInheritanceViewMapping() -
getDefaultBatchSize
Integer getDefaultBatchSize() -
setDefaultBatchSize
-
getExcludedAttributes
-
setIdAttributeMapping
-
setVersionAttributeMapping
-
getResolvedLockMode
LockMode getResolvedLockMode() -
getMethodAttributes
Map<String,MethodAttributeMapping> getMethodAttributes() -
addConstructor
-
getConstructorMappings
Map<ParametersKey,ConstructorMapping> getConstructorMappings() -
determineInheritanceMapping
-
setInheritanceMapping
-
isInheritanceSubtypesResolved
boolean isInheritanceSubtypesResolved() -
setInheritanceSubtypesResolved
void setInheritanceSubtypesResolved(boolean inheritanceSubtypesResolved) -
getInheritanceSubtypeClasses
-
getInheritanceSubtypes
Set<ViewMapping> getInheritanceSubtypes() -
getInheritanceSupertypes
Set<ViewMapping> getInheritanceSupertypes() -
getInheritanceViewMappings
Set<InheritanceViewMapping> getInheritanceViewMappings() -
onInitializeViewMappingsFinished
-
isCreatable
-
initializeViewMappings
-
getManagedType
-
getManagedViewType
ManagedViewTypeImplementor<?> getManagedViewType(MetamodelBuildingContext context, EmbeddableOwner embeddableMapping) -
getIdAttribute
MethodAttributeMapping getIdAttribute()- Specified by:
getIdAttributein interfaceEntityViewMapping
-
getVersionAttribute
MethodAttributeMapping getVersionAttribute()- Specified by:
getVersionAttributein interfaceEntityViewMapping
-
validateDependencies
boolean validateDependencies(MetamodelBuildingContext context, Set<Class<?>> dependencies, AttributeMapping originatingAttributeMapping, Class<?> excludeEntityViewClass, boolean reportError) -
getSpecialMethods
-
setSpecialMethods
-
getCteProviders
Set<Class<? extends CTEProvider>> getCteProviders() -
setCteProviders
-
getViewFilterProviders
Map<String,Class<? extends ViewFilterProvider>> getViewFilterProviders() -
setViewFilterProviders
-
getEntityViewRoots
Set<EntityViewRootMapping> getEntityViewRoots() -
setEntityViewRoots
-
getViewRoots
-
getViewRootTypes
-