Class EmbeddableUpdaterBasedViewToEntityMapper
java.lang.Object
com.blazebit.persistence.view.impl.entity.AbstractViewToEntityMapper
com.blazebit.persistence.view.impl.entity.EmbeddableUpdaterBasedViewToEntityMapper
- 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
ConstructorsConstructorDescriptionEmbeddableUpdaterBasedViewToEntityMapper(String attributeLocation, EntityViewManagerImpl evm, Class<?> viewTypeClass, Set<Type<?>> readOnlyAllowedSubtypes, Set<Type<?>> persistAllowedSubtypes, Set<Type<?>> updateAllowedSubtypes, EntityLoader entityLoader, boolean persistAllowed, Mapper<Object, Object> idViewToEntityMapper, EntityViewUpdaterImpl owner, String ownerMapping, Map<Object, EntityViewUpdaterImpl> localCache) -
Method Summary
Modifier and TypeMethodDescriptionapplyToEntity(UpdateContext context, Object entity, Object view) createEmbeddable(UpdateContext context) 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) voidloadEntities(UpdateContext context, List<Object> views) loadEntity(UpdateContext context, Object view) Methods inherited from class com.blazebit.persistence.view.impl.entity.AbstractViewToEntityMapper
applyAll, cascades, createUpdateQuery, getFullGraphNode, getIdFlusher, getViewTypeClass, names, persist, remove, removeById, shouldPersist
-
Constructor Details
-
EmbeddableUpdaterBasedViewToEntityMapper
public EmbeddableUpdaterBasedViewToEntityMapper(String attributeLocation, EntityViewManagerImpl evm, Class<?> viewTypeClass, Set<Type<?>> readOnlyAllowedSubtypes, Set<Type<?>> persistAllowedSubtypes, Set<Type<?>> updateAllowedSubtypes, EntityLoader entityLoader, boolean persistAllowed, Mapper<Object, Object> idViewToEntityMapper, 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
-
createEmbeddable
-
flushToEntity
-
loadEntities
- Specified by:
loadEntitiesin interfaceViewToEntityMapper- Overrides:
loadEntitiesin classAbstractViewToEntityMapper
-
loadEntity
- Specified by:
loadEntityin interfaceViewToEntityMapper- Overrides:
loadEntityin classAbstractViewToEntityMapper
-
getViewIdAccessor
- Specified by:
getViewIdAccessorin interfaceViewToEntityMapper- Overrides:
getViewIdAccessorin classAbstractViewToEntityMapper
-
getEntityIdAccessor
- Specified by:
getEntityIdAccessorin interfaceViewToEntityMapper- Overrides:
getEntityIdAccessorin classAbstractViewToEntityMapper
-