Package com.blazebit.persistence.view
Entity-View extension for the Blaze-Persistence API.
-
Interface Summary Interface Description CollectionInstantiator<C extends Collection<?>,R extends Collection<?> & RecordingContainer<? extends C>> An instantiator for normal, recording and JPA collections for an entity view attribute.ConvertOperationBuilder<T> A builder for defining flush related configuration.CorrelationBuilder A builder for correlating a basis with an entity class.CorrelationProvider Provides correlation functionality for entity views.CorrelationProviderFactory A factory for creating aCorrelationProvider
.CTEProvider Provides CTE bindings to aCTEBuilder
.EntityViewBuilder<ViewType> A builder for defining flush related configuration.EntityViewBuilderBase<ViewType,BuilderType extends EntityViewBuilderBase<ViewType,BuilderType>> A builder for creating an entity view.EntityViewBuilderListener A listener that is invoked after an entity view was built.EntityViewManager An interface that gives access to the metamodel and object builders.EntityViewNestedBuilder<ViewType,ResultType,BuilderType extends EntityViewNestedBuilder<ViewType,ResultType,BuilderType>> A builder for creating nested entity views.FlushOperationBuilder A builder for defining flush related configuration.MapInstantiator<C extends Map<?,?>,R extends Map<?,?> & RecordingContainer<? extends C>> An instantiator for normal, recording and JPA maps for an entity view attribute.PostCommitListener<T> A listener for getting a callback after committing a flush for an entity view.PostPersistEntityListener<T,E> A listener for getting a callback after persisting a creatable view.PostPersistListener<T> A listener for getting a callback after persisting a creatable view.PostRemoveListener<T> A listener for getting a callback after a view is removed.PostRollbackListener<T> A listener for getting a callback after rolling back a flush for an entity view.PostUpdateListener<T> A listener for getting a callback after updating an updatable view.PrePersistEntityListener<T,E> A listener for getting a callback before persisting a creatable view.PrePersistListener<T> A listener for getting a callback before persisting a creatable view.PreRemoveListener<T> A listener for getting a callback before a view is removed.PreUpdateListener<T> A listener for getting a callback before updating an updatable view.RecordingContainer<C> A recording collection.Sorter A sorter is an object that applies an order by on aOrderByBuilder
for a specific expression.SubGraph<T> Represents a fetch graph node for entity views.SubqueryProvider Provides a subquery to aSubqueryInitiator
.SubqueryProviderFactory A factory for creating aSubqueryProvider
.ViewAndEntityListener<T,E> A listener for getting a callback.ViewListener<T> A listener for getting a callback.ViewTransitionListener<T> A listener for getting a callback. -
Class Summary Class Description AttributeFilterProvider<FilterValue> An attribute filter provider is an object that applies restrictions on aWhereBuilder
.CollectionEntityViewBuilderListener A listener that adds the built entity view to a collection.ConfigurationProperties Configuration properties that can be specified viaEntityViewConfiguration.setProperty(String, String)
.EntityViews Bootstrap class that is used to obtain a EntityViewConfiguration instance within Java SE environments.EntityViewSetting<T,Q extends FullQueryBuilder<T,Q>> A EntityViewSetting is a set of filters and sorters that can be applied to aCriteriaBuilder
.EntityViewSetting.AttributeFilterActivation The activation of a filter.ListEntityViewBuilderListener A listener that adds the built entity view to a list.MapEntityViewBuilderListener A listener that adds the built entity view to a map.MapKeyEntityViewBuilderListener A listener that adds the built entity view to a map.SerializableEntityViewManager A serializable entity view manager implementation that accesses the actual entity view manager through a static field in the entity view implementation class.SingularIndexEntityViewBuilderListener A listener that sets the built entity view on the given builder for the given parameter index.SingularNameEntityViewBuilderListener A listener that sets the built entity view on the given builder for the given attribute name.Sorters A utility class that provides methods to create standard sorters.ViewFilterProvider A view filter provider is an object that applies restrictions on aWhereBuilder
. -
Enum Summary Enum Description CascadeType The cascade types for updatable entity views.ConvertOption The available options that can be enabled when converting entity view types viaEntityViewManager.convert(Object, Class, ConvertOption...)
.FetchStrategy The fetch strategy for an entity view attribute.FlushMode The flush mode for an updatable entity view.FlushStrategy The flush mode for an updatable entity view.InverseRemoveStrategy The strategy to use when an element was removed from the inverse relation.LockMode The lock mode types for updatable entity views.ViewTransition The transition types for entity views. -
Exception Summary Exception Description OptimisticLockException Thrown when an optimistic lock conflict has been detected. -
Annotation Types Summary Annotation Type Description AllowUpdatableEntityViews Specifies that the annotated attribute is allowed to use an updatable entity view type even if it is an owned *ToOne relation.AttributeFilter Adds a named filter to an entity view attribute.AttributeFilters Adds multipleAttributeFilter
.BatchFetch IfFetchStrategy.SELECT
is used on a property, this annotation configures the default batching.CollectionMapping Specifies the behavior of a collection mapping.CreatableEntityView Specifies that the class is a creatable entity view.EmptyFlatViewCreation Specifies whether an empty flat view i.e. a view without an id where all members are null should be created or ifnull
should be assigned.EntityView Specifies that the class is an entity view.EntityViewInheritance Specifies that the entity view should consider subtypes of the entity view when queried.EntityViewInheritanceMapping Defines the inheritance selection for the entity view when a super type is queried.EntityViewListener Annotation to declare an entity view listener that should be registered for the given entity view type.EntityViewListeners Annotation to register an entity view listener for multiple entity view types.EntityViewRoot Registers an entity view root for the annotated entity view.EntityViewRoots Annotation to register entity view roots.IdMapping Maps the annotated element to the id attribute of the entity.Limit Limits the amount of elements to fetch for the annotated attribute.LockOwner Annotation to specify the owner of a lock that should be used for locking.Mapping A mapping to a JPQL expression which contains references to fields of the entity.MappingCorrelated Maps the annotated attribute as correlation attribute.MappingCorrelatedSimple Maps the annotated attribute as correlation attribute with a simple declarative mapping of the correlation.MappingIndex A mapping to a JPQL expression which contains references to fields of the target entity/association.MappingInheritance Defines the subtype mappings for a subview attribute.MappingInheritanceMapKey Defines the subtype mappings for a map attribute with a subview key.MappingInheritanceSubtype Defines a possible subtype that should be materialized when the selection predicate is satisfied.MappingInverse Defines the inverse mapping to use for persisting or updating elements.MappingParameter A mapping to a parameter which is passed into a query when querying an entity view.MappingSingular Specifies that the annotated attribute should be singular.MappingSubquery Maps the annotated attribute as subquery.MultiCollectionMapping Specifies the behavior of a multi-map collection mapping.OptimisticLock Annotation to specify whether a change of the annotated attribute will cause optimistic locking.PostCommit Annotation to mark a method to be executed after a transaction that flushes the type containing this method was successfully committed.PostConvert Annotation to mark a method to be executed after a call toEntityViewManager.convert(Object, Class, ConvertOption...)
.PostCreate Annotation to mark a method to be executed after a call toEntityViewManager.create(Class)
.PostLoad Annotation to mark a method to be executed after the loading of an entity view.PostPersist Annotation to mark a method to be executed after a call toEntityManager.persist(Object)
when flushing the creatable entity view containing this method viaEntityViewManager.save(EntityManager, Object)
.PostRemove Annotation to mark a method to be executed after removing an entity view due to orphan removal, delete cascading or removal.PostRollback Annotation to mark a method to be executed after a transaction that flushes the type containing this method was rolled back.PostUpdate Annotation to mark a method to be executed after updating an entity view.PrePersist Annotation to mark a method to be executed before a call toEntityManager.persist(Object)
when flushing the creatable entity view containing this method viaEntityViewManager.save(EntityManager, Object)
.PreRemove Annotation to mark a method to be executed before removing an entity view due to orphan removal, delete cascading or removal.PreUpdate Annotation to mark a method to be executed before updating an entity view.Self A marker annotation for annotating the "self"-instance which can be injected into a constructor to access state in a safe way.StaticBuilder The StaticBuilder annotation specifies that the class is the builder class for the entity view class designated by the value element.StaticImplementation The StaticImplementation annotation specifies that the class is the implementation class for the entity view class designated by the value element.StaticMetamodel The StaticMetamodel annotation specifies that the class is the metamodel class for the entity view class designated by the value element.StaticRelation The StaticRelation annotation specifies that the class is the relation class for the entity view class designated by the value element.UpdatableEntityView Specifies that the class is an updatable entity view.UpdatableMapping Specifies the update handling of values assigned to the annotated attribute.ViewConstructor A naming mechanism for entity view constructors.ViewFilter Adds a named filter to an entity view.ViewFilters Adds multiple ViewFilter.With AddsCTEProvider
s that should be invoked when applying the annotated entity view.