Class UpdaterBasedViewToEntityMapper
java.lang.Object
com.blazebit.persistence.view.impl.entity.AbstractViewToEntityMapper
com.blazebit.persistence.view.impl.entity.UpdaterBasedViewToEntityMapper
- All Implemented Interfaces:
ElementToEntityMapper,ViewToEntityMapper,UpdateQueryFactory
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.entity.AbstractViewToEntityMapper
attributeLocation, defaultUpdater, entityIdAccessor, entityLoader, isEmbeddable, persistAllowed, persistUpdater, removeUpdater, updateUpdater, viewIdAccessor, viewTypeClasses -
Constructor Summary
ConstructorsConstructorDescriptionUpdaterBasedViewToEntityMapper(String attributeLocation, EntityViewManagerImpl evm, Class<?> viewTypeClass, Set<Type<?>> readOnlyAllowedSubtypes, Set<Type<?>> persistAllowedSubtypes, Set<Type<?>> updateAllowedSubtypes, EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor, boolean persistAllowed, EntityViewUpdaterImpl owner, String ownerMapping, Map<Object, EntityViewUpdaterImpl> localCache) -
Method Summary
Modifier and TypeMethodDescriptionapplyToEntity(UpdateContext context, Object entity, Object view) javax.persistence.QuerycreateUpdateQuery(UpdateContext context, MutableStateTrackable view, DirtyAttributeFlusher<?, ?, ?> nestedGraphNode) flushToEntity(UpdateContext context, Object entity, Object view) <T extends DirtyAttributeFlusher<T,E, V>, E, V>
DirtyAttributeFlusher<T,E, V> getNestedDirtyFlusher(UpdateContext context, MutableStateTrackable current, DirtyAttributeFlusher<T, E, V> fullFlusher) getUpdater(Object current) Methods inherited from class com.blazebit.persistence.view.impl.entity.AbstractViewToEntityMapper
applyAll, cascades, getEntityIdAccessor, getFullGraphNode, getIdFlusher, getViewIdAccessor, getViewTypeClass, loadEntities, loadEntity, names, persist, remove, removeById, shouldPersist
-
Constructor Details
-
UpdaterBasedViewToEntityMapper
public UpdaterBasedViewToEntityMapper(String attributeLocation, EntityViewManagerImpl evm, Class<?> viewTypeClass, Set<Type<?>> readOnlyAllowedSubtypes, Set<Type<?>> persistAllowedSubtypes, Set<Type<?>> updateAllowedSubtypes, EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor, boolean persistAllowed, EntityViewUpdaterImpl owner, String ownerMapping, Map<Object, EntityViewUpdaterImpl> localCache)
-
-
Method Details
-
getUpdater
- Specified by:
getUpdaterin interfaceViewToEntityMapper- Overrides:
getUpdaterin classAbstractViewToEntityMapper
-
getNestedDirtyFlusher
public <T extends DirtyAttributeFlusher<T,E, DirtyAttributeFlusher<T,V>, E, V> E, getNestedDirtyFlusherV> (UpdateContext context, MutableStateTrackable current, DirtyAttributeFlusher<T, E, V> fullFlusher) - Specified by:
getNestedDirtyFlusherin interfaceViewToEntityMapper- Overrides:
getNestedDirtyFlusherin classAbstractViewToEntityMapper
-
applyToEntity
- Specified by:
applyToEntityin interfaceElementToEntityMapper- Overrides:
applyToEntityin classAbstractViewToEntityMapper
-
flushToEntity
-
createUpdateQuery
public javax.persistence.Query createUpdateQuery(UpdateContext context, MutableStateTrackable view, DirtyAttributeFlusher<?, ?, ?> nestedGraphNode) - Specified by:
createUpdateQueryin interfaceUpdateQueryFactory- Overrides:
createUpdateQueryin classAbstractViewToEntityMapper
-