Class EntityViewUpdaterImpl
java.lang.Object
com.blazebit.persistence.view.impl.update.EntityViewUpdaterImpl
- All Implemented Interfaces:
EntityViewUpdater
,UpdateQueryFactory
public class EntityViewUpdaterImpl extends Object implements EntityViewUpdater
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static String
WHERE_CLAUSE_PREFIX
-
Constructor Summary
Constructors Constructor Description EntityViewUpdaterImpl(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, ManagedViewTypeImplementor<?> viewType, ManagedViewTypeImplementor<?> declaredViewType, EntityViewUpdaterImpl owner, String ownerMapping)
-
Method Summary
-
Field Details
-
WHERE_CLAUSE_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Details
-
EntityViewUpdaterImpl
public EntityViewUpdaterImpl(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, ManagedViewTypeImplementor<?> viewType, ManagedViewTypeImplementor<?> declaredViewType, EntityViewUpdaterImpl owner, String ownerMapping)
-
-
Method Details
-
createViewIdMapper
public static ViewToEntityMapper createViewIdMapper(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, ManagedViewType<?> viewType) -
createViewIdMapper
public static ViewToEntityMapper createViewIdMapper(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, SingularAttribute<?,?> viewIdAttribute) -
createIdFlusher
public static DirtyAttributeFlusher<?,Object,Object> createIdFlusher(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, ViewType<?> viewType, ViewToEntityMapper viewToEntityMapper) -
createIdFlusher
public static DirtyAttributeFlusher<?,Object,Object> createIdFlusher(EntityViewManagerImpl evm, Map<Object,EntityViewUpdaterImpl> localCache, ViewType<?> viewType, ViewToEntityMapper viewToEntityMapper, AbstractMethodAttribute<?,?> idAttribute) -
getFullGraphNode
- Specified by:
getFullGraphNode
in interfaceEntityViewUpdater
-
getIdFlusher
- Specified by:
getIdFlusher
in interfaceEntityViewUpdater
-
getNestedDirtyFlusher
public <T extends DirtyAttributeFlusher<T, E, V>, E, V> DirtyAttributeFlusher<T,E,V> getNestedDirtyFlusher(UpdateContext context, MutableStateTrackable updatableProxy, DirtyAttributeFlusher<T,E,V> fullFlusher)- Specified by:
getNestedDirtyFlusher
in interfaceEntityViewUpdater
-
getDirtyChecker
- Specified by:
getDirtyChecker
in interfaceEntityViewUpdater
-
getManagedViewType
-
executeUpdate
- Specified by:
executeUpdate
in interfaceEntityViewUpdater
-
executeUpdate
public Object executeUpdate(UpdateContext context, Object entity, MutableStateTrackable updatableProxy)- Specified by:
executeUpdate
in interfaceEntityViewUpdater
-
createUpdateQuery
public javax.persistence.Query createUpdateQuery(UpdateContext context, MutableStateTrackable updatableProxy, DirtyAttributeFlusher<?,?,?> flusher)- Specified by:
createUpdateQuery
in interfaceUpdateQueryFactory
-
executePersist
- Specified by:
executePersist
in interfaceEntityViewUpdater
-
executePersist
public Object executePersist(UpdateContext context, Object entity, MutableStateTrackable updatableProxy)- Specified by:
executePersist
in interfaceEntityViewUpdater
-
remove
- Specified by:
remove
in interfaceEntityViewUpdater
-
remove
- Specified by:
remove
in interfaceEntityViewUpdater
-