Class ManagedViewTypeImpl<X>
java.lang.Object
com.blazebit.persistence.view.impl.metamodel.ManagedViewTypeImpl<X>
- All Implemented Interfaces:
ManagedViewTypeImplementor<X>
,ManagedViewType<X>
,Type<X>
- Direct Known Subclasses:
FlatViewTypeImpl
,ViewTypeImpl
public abstract class ManagedViewTypeImpl<X> extends Object implements ManagedViewTypeImplementor<X>
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedViewTypeImpl.AttributeKey
static class
ManagedViewTypeImpl.InheritanceSubtypeConfiguration<X>
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.Type
Type.MappingType
-
Constructor Summary
Constructors Constructor Description ManagedViewTypeImpl(ViewMapping viewMapping, javax.persistence.metamodel.ManagedType<?> managedType, MetamodelBuildingContext context, EmbeddableOwner embeddableMapping)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.blazebit.persistence.view.impl.metamodel.ManagedViewTypeImplementor
getRealType, supportsInterfaceEquals
-
Constructor Details
-
ManagedViewTypeImpl
public ManagedViewTypeImpl(ViewMapping viewMapping, javax.persistence.metamodel.ManagedType<?> managedType, MetamodelBuildingContext context, EmbeddableOwner embeddableMapping)
-
-
Method Details
-
checkAttributes
- Specified by:
checkAttributes
in interfaceManagedViewTypeImplementor<X>
-
checkNestedAttributes
public void checkNestedAttributes(List<AbstractAttribute<?,?>> parents, MetamodelBuildingContext context, boolean hasMultisetParent)- Specified by:
checkNestedAttributes
in interfaceManagedViewTypeImplementor<X>
-
hasId
protected abstract boolean hasId() -
isUpdatable
public boolean isUpdatable()- Specified by:
isUpdatable
in interfaceManagedViewType<X>
-
getLockMode
- Specified by:
getLockMode
in interfaceManagedViewTypeImplementor<X>
-
isCreatable
public boolean isCreatable()- Specified by:
isCreatable
in interfaceManagedViewType<X>
-
getPostCreateMethod
- Specified by:
getPostCreateMethod
in interfaceManagedViewType<X>
-
getPostConvertMethod
- Specified by:
getPostConvertMethod
in interfaceManagedViewType<X>
-
getPostLoadMethod
- Specified by:
getPostLoadMethod
in interfaceManagedViewType<X>
-
getPrePersistMethod
- Specified by:
getPrePersistMethod
in interfaceManagedViewType<X>
-
getPostPersistMethod
- Specified by:
getPostPersistMethod
in interfaceManagedViewType<X>
-
getPreUpdateMethod
- Specified by:
getPreUpdateMethod
in interfaceManagedViewType<X>
-
getPostUpdateMethod
- Specified by:
getPostUpdateMethod
in interfaceManagedViewType<X>
-
getPreRemoveMethod
- Specified by:
getPreRemoveMethod
in interfaceManagedViewType<X>
-
getPostRemoveMethod
- Specified by:
getPostRemoveMethod
in interfaceManagedViewType<X>
-
getPostRollbackMethod
- Specified by:
getPostRollbackMethod
in interfaceManagedViewType<X>
-
getPostCommitMethod
- Specified by:
getPostCommitMethod
in interfaceManagedViewType<X>
-
getPostRollbackTransitions
- Specified by:
getPostRollbackTransitions
in interfaceManagedViewType<X>
-
getPostCommitTransitions
- Specified by:
getPostCommitTransitions
in interfaceManagedViewType<X>
-
getSpecialMethods
- Specified by:
getSpecialMethods
in interfaceManagedViewTypeImplementor<X>
-
getFlushMode
- Specified by:
getFlushMode
in interfaceManagedViewType<X>
-
getFlushStrategy
- Specified by:
getFlushStrategy
in interfaceManagedViewType<X>
-
isPersistabilityValidationEnabled
public boolean isPersistabilityValidationEnabled()- Specified by:
isPersistabilityValidationEnabled
in interfaceManagedViewType<X>
-
getPersistabilityValidationExcludedEntityAttributes
- Specified by:
getPersistabilityValidationExcludedEntityAttributes
in interfaceManagedViewType<X>
-
getJavaType
- Specified by:
getJavaType
in interfaceType<X>
-
getConvertedType
- Specified by:
getConvertedType
in interfaceType<X>
-
getConverter
- Specified by:
getConverter
in interfaceType<X>
-
getEntityClass
- Specified by:
getEntityClass
in interfaceManagedViewType<X>
-
getJpaManagedType
public javax.persistence.metamodel.ManagedType<?> getJpaManagedType()- Specified by:
getJpaManagedType
in interfaceManagedViewTypeImplementor<X>
-
getDefaultBatchSize
public int getDefaultBatchSize()- Specified by:
getDefaultBatchSize
in interfaceManagedViewType<X>
-
getAttributes
- Specified by:
getAttributes
in interfaceManagedViewType<X>
-
getUpdateMappableAttributes
- Specified by:
getUpdateMappableAttributes
in interfaceManagedViewTypeImplementor<X>
-
getAttribute
- Specified by:
getAttribute
in interfaceManagedViewType<X>
-
getDefaultConstructor
- Specified by:
getDefaultConstructor
in interfaceManagedViewTypeImplementor<X>
-
getConstructors
- Specified by:
getConstructors
in interfaceManagedViewType<X>
-
getConstructor
- Specified by:
getConstructor
in interfaceManagedViewType<X>
-
getConstructorNames
- Specified by:
getConstructorNames
in interfaceManagedViewType<X>
-
getConstructor
- Specified by:
getConstructor
in interfaceManagedViewType<X>
-
getRecursiveAttributes
- Specified by:
getRecursiveAttributes
in interfaceManagedViewTypeImplementor<X>
-
getRecursiveSubviewAttributes
- Specified by:
getRecursiveSubviewAttributes
in interfaceManagedViewTypeImplementor<X>
-
getInheritanceMapping
- Specified by:
getInheritanceMapping
in interfaceManagedViewType<X>
-
getInheritanceSubtypes
- Specified by:
getInheritanceSubtypes
in interfaceManagedViewType<X>
-
getInheritanceSubtypeConfiguration
- Specified by:
getInheritanceSubtypeConfiguration
in interfaceManagedViewTypeImplementor<X>
-
hasEmptyConstructor
public boolean hasEmptyConstructor()- Specified by:
hasEmptyConstructor
in interfaceManagedViewTypeImplementor<X>
-
hasJoinFetchedCollections
public boolean hasJoinFetchedCollections()- Specified by:
hasJoinFetchedCollections
in interfaceManagedViewTypeImplementor<X>
-
hasSelectOrSubselectFetchedAttributes
public boolean hasSelectOrSubselectFetchedAttributes()- Specified by:
hasSelectOrSubselectFetchedAttributes
in interfaceManagedViewTypeImplementor<X>
-
hasJpaManagedAttributes
public boolean hasJpaManagedAttributes()- Specified by:
hasJpaManagedAttributes
in interfaceManagedViewTypeImplementor<X>
-
hasSubtypes
public boolean hasSubtypes()- Specified by:
hasSubtypes
in interfaceManagedViewTypeImplementor<X>
-
getSubtypeIndex
- Specified by:
getSubtypeIndex
in interfaceManagedViewTypeImplementor<X>
-
getInheritanceSubtypeConfiguration
public ManagedViewTypeImpl.InheritanceSubtypeConfiguration<X> getInheritanceSubtypeConfiguration(Map<ManagedViewType<? extends X>,String> inheritanceSubtypeMapping)- Specified by:
getInheritanceSubtypeConfiguration
in interfaceManagedViewTypeImplementor<X>
-
getOverallInheritanceSubtypeConfiguration
public ManagedViewTypeImpl.InheritanceSubtypeConfiguration<X> getOverallInheritanceSubtypeConfiguration()- Specified by:
getOverallInheritanceSubtypeConfiguration
in interfaceManagedViewTypeImplementor<X>
-
getDefaultInheritanceSubtypeConfiguration
public ManagedViewTypeImpl.InheritanceSubtypeConfiguration<X> getDefaultInheritanceSubtypeConfiguration()- Specified by:
getDefaultInheritanceSubtypeConfiguration
in interfaceManagedViewTypeImplementor<X>
-
getInheritanceSubtypeConfigurations
public Map<Map<ManagedViewType<? extends X>,String>,ManagedViewTypeImpl.InheritanceSubtypeConfiguration<X>> getInheritanceSubtypeConfigurations()- Specified by:
getInheritanceSubtypeConfigurations
in interfaceManagedViewTypeImplementor<X>
-
getMutableAttribute
- Specified by:
getMutableAttribute
in interfaceManagedViewTypeImplementor<X>
-
getMutableAttributeCount
public int getMutableAttributeCount()- Specified by:
getMutableAttributeCount
in interfaceManagedViewTypeImplementor<X>
-
getTypeConstraintMapping
-
getCteProviders
- Specified by:
getCteProviders
in interfaceManagedViewType<X>
-
getEntityViewRoots
- Specified by:
getEntityViewRoots
in interfaceManagedViewType<X>
-
getEntityViewRootTypes
- Specified by:
getEntityViewRootTypes
in interfaceManagedViewTypeImplementor<X>
-
renderSecondaryMappings
public void renderSecondaryMappings(String viewPath, BaseQueryBuilder<?,?> baseQueryBuilder, Map<String,Object> optionalParameters, boolean renderFetches)- Specified by:
renderSecondaryMappings
in interfaceManagedViewType<X>
-
createLimiter
public Limiter createLimiter(ExpressionFactory expressionFactory, String prefix, String limitExpression, String offsetExpression, List<OrderByItem> orderByItems)- Specified by:
createLimiter
in interfaceManagedViewTypeImplementor<X>
-