Class LoadOnlyViewToEntityMapper
java.lang.Object
com.blazebit.persistence.view.impl.entity.LoadOnlyViewToEntityMapper
- All Implemented Interfaces:
ElementToEntityMapper
,ViewToEntityMapper
,UpdateQueryFactory
public class LoadOnlyViewToEntityMapper extends Object implements ViewToEntityMapper
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description protected AttributeAccessor
entityIdAccessor
protected EntityLoader
entityLoader
protected AttributeAccessor
viewIdAccessor
-
Constructor Summary
Constructors Constructor Description LoadOnlyViewToEntityMapper(EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor)
-
Method Summary
-
Field Details
-
Constructor Details
-
LoadOnlyViewToEntityMapper
public LoadOnlyViewToEntityMapper(EntityLoader entityLoader, AttributeAccessor viewIdAccessor, AttributeAccessor entityIdAccessor)
-
-
Method Details
-
getFullGraphNode
- Specified by:
getFullGraphNode
in interfaceViewToEntityMapper
-
getIdFlusher
- Specified by:
getIdFlusher
in interfaceViewToEntityMapper
-
getUpdater
- Specified by:
getUpdater
in interfaceViewToEntityMapper
-
remove
- Specified by:
remove
in interfaceElementToEntityMapper
-
removeById
- Specified by:
removeById
in interfaceElementToEntityMapper
-
cascades
- Specified by:
cascades
in interfaceViewToEntityMapper
-
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
-
createUpdateQuery
public javax.persistence.Query createUpdateQuery(UpdateContext context, MutableStateTrackable view, DirtyAttributeFlusher<?,?,?> nestedGraphNode)- Specified by:
createUpdateQuery
in interfaceUpdateQueryFactory
-
applyToEntity
- Specified by:
applyToEntity
in interfaceElementToEntityMapper
-
applyAll
- Specified by:
applyAll
in interfaceElementToEntityMapper
-
flushToEntity
- Specified by:
flushToEntity
in interfaceViewToEntityMapper
-
loadEntities
- Specified by:
loadEntities
in interfaceViewToEntityMapper
-
loadEntity
- Specified by:
loadEntity
in interfaceViewToEntityMapper
-
getViewIdAccessor
- Specified by:
getViewIdAccessor
in interfaceViewToEntityMapper
-
getEntityIdAccessor
- Specified by:
getEntityIdAccessor
in interfaceViewToEntityMapper
-