Class LoadOnlyViewToEntityMapper
java.lang.Object
com.blazebit.persistence.view.impl.entity.LoadOnlyViewToEntityMapper
- All Implemented Interfaces:
ElementToEntityMapper,ViewToEntityMapper,UpdateQueryFactory
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AttributeAccessorprotected final EntityLoaderprotected final AttributeAccessor -
Constructor Summary
ConstructorsConstructorDescriptionLoadOnlyViewToEntityMapper(EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAll(UpdateContext context, List<Object> elements) applyToEntity(UpdateContext context, Object entity, Object view) booleanjavax.persistence.QuerycreateUpdateQuery(UpdateContext context, MutableStateTrackable view, DirtyAttributeFlusher<?, ?, ?> nestedGraphNode) flushToEntity(UpdateContext context, Object entity, Object view) DirtyAttributeFlusher<?,?, ?> <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) voidremove(UpdateContext context, Object element) voidremoveById(UpdateContext context, Object id)
-
Field Details
-
entityLoader
-
viewIdAccessor
-
entityIdAccessor
-
-
Constructor Details
-
LoadOnlyViewToEntityMapper
public LoadOnlyViewToEntityMapper(EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor)
-
-
Method Details
-
getFullGraphNode
- Specified by:
getFullGraphNodein interfaceViewToEntityMapper
-
getIdFlusher
- Specified by:
getIdFlusherin interfaceViewToEntityMapper
-
getUpdater
- Specified by:
getUpdaterin interfaceViewToEntityMapper
-
remove
- Specified by:
removein interfaceElementToEntityMapper
-
removeById
- Specified by:
removeByIdin interfaceElementToEntityMapper
-
cascades
- Specified by:
cascadesin interfaceViewToEntityMapper
-
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
-
createUpdateQuery
public javax.persistence.Query createUpdateQuery(UpdateContext context, MutableStateTrackable view, DirtyAttributeFlusher<?, ?, ?> nestedGraphNode) - Specified by:
createUpdateQueryin interfaceUpdateQueryFactory
-
applyToEntity
- Specified by:
applyToEntityin interfaceElementToEntityMapper
-
applyAll
- Specified by:
applyAllin interfaceElementToEntityMapper
-
flushToEntity
- Specified by:
flushToEntityin interfaceViewToEntityMapper
-
loadEntities
- Specified by:
loadEntitiesin interfaceViewToEntityMapper
-
loadEntity
- Specified by:
loadEntityin interfaceViewToEntityMapper
-
getViewIdAccessor
- Specified by:
getViewIdAccessorin interfaceViewToEntityMapper
-
getEntityIdAccessor
- Specified by:
getEntityIdAccessorin interfaceViewToEntityMapper
-