Interface ViewType<X>
- Type Parameters:
X
- The type of the entity view
- All Superinterfaces:
ManagedViewType<X>
,Type<X>
public interface ViewType<X> extends ManagedViewType<X>
Represents the metamodel of an entity view.
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.metamodel.Type
Type.MappingType
-
Method Summary
Modifier and Type Method Description MethodAttribute<? super X,?>
getIdAttribute()
Returns the id attribute of the entity view.LockMode
getLockMode()
Returns the lock mode that is used for this entity view, or null.String
getLockOwner()
Returns path to the lock owner relative from the view types entity class if there is any, or null.MethodAttribute<? super X,?>
getVersionAttribute()
Returns the version attribute of the entity view if there is any, or null.ViewFilterMapping
getViewFilter(String filterName)
Returns the view filter mapping of the entity view with the given name.Set<ViewFilterMapping>
getViewFilters()
Returns the view filter mappings of the entity view.Methods inherited from interface com.blazebit.persistence.view.metamodel.ManagedViewType
getAttribute, getAttributes, getConstructor, getConstructor, getConstructorNames, getConstructors, getCteProviders, getDefaultBatchSize, getEntityClass, getFlushMode, getFlushStrategy, getInheritanceMapping, getInheritanceSubtypes, getPersistabilityValidationExcludedEntityAttributes, getPostCommitMethod, getPostCommitTransitions, getPostConvertMethod, getPostCreateMethod, getPostLoadMethod, getPostPersistMethod, getPostRemoveMethod, getPostRollbackMethod, getPostRollbackTransitions, getPostUpdateMethod, getPrePersistMethod, getPreRemoveMethod, getPreUpdateMethod, isCreatable, isPersistabilityValidationEnabled, isUpdatable
Methods inherited from interface com.blazebit.persistence.view.metamodel.Type
getConvertedType, getConverter, getJavaType, getMappingType
-
Method Details
-
getIdAttribute
MethodAttribute<? super X,?> getIdAttribute()Returns the id attribute of the entity view.- Returns:
- The id attribute of the entity view
-
getVersionAttribute
MethodAttribute<? super X,?> getVersionAttribute()Returns the version attribute of the entity view if there is any, or null.- Returns:
- The version attribute of the entity view, or null
- Since:
- 1.2.0
-
getLockOwner
String getLockOwner()Returns path to the lock owner relative from the view types entity class if there is any, or null.- Returns:
- The path to the lock owner, or null
- Since:
- 1.2.0
-
getLockMode
LockMode getLockMode()Returns the lock mode that is used for this entity view, or null.- Returns:
- The lock mode, or null
- Since:
- 1.2.0
-
getViewFilter
Returns the view filter mapping of the entity view with the given name.- Parameters:
filterName
- The name of the view filter mapping which should be returned- Returns:
- The view filter mapping of the entity view with the given name
-
getViewFilters
Set<ViewFilterMapping> getViewFilters()Returns the view filter mappings of the entity view.- Returns:
- The view filter mappings of the entity view
-