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
public class EmbeddableUpdaterBasedViewToEntityMapper extends AbstractViewToEntityMapper
- 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
Constructors Constructor Description 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 Summary
Modifier and Type Method Description Object
applyToEntity(UpdateContext context, Object entity, Object view)
Object
createEmbeddable(UpdateContext context)
Object
flushToEntity(UpdateContext context, Object entity, Object view)
AttributeAccessor
getEntityIdAccessor()
<T extends DirtyAttributeFlusher<T, E, V>, E, V>
DirtyAttributeFlusher<T,E,V>getNestedDirtyFlusher(UpdateContext context, MutableStateTrackable current, DirtyAttributeFlusher<T,E,V> fullFlusher)
EntityViewUpdater
getUpdater(Object current)
AttributeAccessor
getViewIdAccessor()
void
loadEntities(UpdateContext context, List<Object> views)
Object
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:
getUpdater
in interfaceViewToEntityMapper
- Overrides:
getUpdater
in classAbstractViewToEntityMapper
-
getNestedDirtyFlusher
public <T extends DirtyAttributeFlusher<T, E, V>, E, V> DirtyAttributeFlusher<T,E,V> getNestedDirtyFlusher(UpdateContext context, MutableStateTrackable current, DirtyAttributeFlusher<T,E,V> fullFlusher)- Specified by:
getNestedDirtyFlusher
in interfaceViewToEntityMapper
- Overrides:
getNestedDirtyFlusher
in classAbstractViewToEntityMapper
-
applyToEntity
- Specified by:
applyToEntity
in interfaceElementToEntityMapper
- Overrides:
applyToEntity
in classAbstractViewToEntityMapper
-
createEmbeddable
-
flushToEntity
-
loadEntities
- Specified by:
loadEntities
in interfaceViewToEntityMapper
- Overrides:
loadEntities
in classAbstractViewToEntityMapper
-
loadEntity
- Specified by:
loadEntity
in interfaceViewToEntityMapper
- Overrides:
loadEntity
in classAbstractViewToEntityMapper
-
getViewIdAccessor
- Specified by:
getViewIdAccessor
in interfaceViewToEntityMapper
- Overrides:
getViewIdAccessor
in classAbstractViewToEntityMapper
-
getEntityIdAccessor
- Specified by:
getEntityIdAccessor
in interfaceViewToEntityMapper
- Overrides:
getEntityIdAccessor
in classAbstractViewToEntityMapper
-