Class ToManyResourceContentHandler
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.binary.AbstractToManyBinaryHandler
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.binary.ToManyResourceContentHandler
- All Implemented Interfaces:
SelectionPathHandler
SelectionPathHandler
for all to-one fields of type binary, which are *not* detail documents.-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
AbstractToManySelectionPathHandler.QueryHolder
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
criteriaBuilder, dataModel, fieldResolver, interceptors, parameterProviders, paths, predicateFactory, queries, rootKeyName, rootModel, selectionInterceptorMap, session, typeManager
-
Constructor Summary
ConstructorDescriptionToManyResourceContentHandler
(DataModel dataModel, TypeManager typeManager, FieldResolver fieldResolver, BinaryDataAccessor binaryDataAccessor, EntityModel rootModel, PredicateFactory predicateFactory, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map
<Serializable, BinaryData> loadBinaryData
(Path path, List<Serializable> allKeys) boolean
Only to-many fields of type 'binary' are supported, which belong to the Resource_content entity.Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.binary.AbstractToManyBinaryHandler
processAdditionalQuery, processResults, select
Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
doLoadData, extractAllRootPrimaryKeys, processSelection
-
Constructor Details
-
ToManyResourceContentHandler
public ToManyResourceContentHandler(DataModel dataModel, TypeManager typeManager, FieldResolver fieldResolver, BinaryDataAccessor binaryDataAccessor, EntityModel rootModel, PredicateFactory predicateFactory, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder)
-
-
Method Details
-
supports
Only to-many fields of type 'binary' are supported, which belong to the Resource_content entity.- Returns:
- true if this instance supports the given path.
-
loadBinaryData
- Specified by:
loadBinaryData
in classAbstractToManyBinaryHandler
-