Class AbstractToManyBinaryHandler
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandler
ch.tocco.nice2.persist.core.impl.hibernate.query.selection.binary.AbstractToManyBinaryHandler
- All Implemented Interfaces:
- SelectionPathHandler
- Direct Known Subclasses:
- ToManyDetailDocumentHandler,- ToManyResourceContentHandler
Abstract 
SelectionPathHandler for all to-many fields of type binary.
 Only the associated primary key of the entity (Resource_content or the related entity if it's an entity doc)
 is queried from the database.
 The BinaryDataAccessor is then used to efficiently query all necessary data based on the retrieved
 primary keys.- 
Nested Class SummaryNested classes/interfaces inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandlerAbstractToManySelectionPathHandler.QueryHolder
- 
Field SummaryFields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandlercriteriaBuilder, dataModel, fieldResolver, interceptors, parameterProviders, paths, predicateFactory, queries, rootKeyName, rootModel, selectionInterceptorMap, session, typeManager
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractToManyBinaryHandler(DataModel dataModel, TypeManager typeManager, FieldResolver fieldResolver, EntityModel rootModel, PredicateFactory predicateFactory, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract Map<Serializable, BinaryData> loadBinaryData(Path path, List<Serializable> allKeys) protected voidprocessAdditionalQuery(AbstractToManySelectionPathHandler.QueryHolder queryHolder, List<Path> paths) <RT> voidprocessResults(List<Object[]> queryResults, List<RT> target, SelectionRegistry selectionRegistry, ResultRowMapper<RT> mapper) This is called after the query was executed.voidMethods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.query.selection.AbstractToManySelectionPathHandlerdoLoadData, extractAllRootPrimaryKeys, processSelectionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.impl.hibernate.query.selection.SelectionPathHandlersupports
- 
Constructor Details- 
AbstractToManyBinaryHandlerpublic AbstractToManyBinaryHandler(DataModel dataModel, TypeManager typeManager, FieldResolver fieldResolver, EntityModel rootModel, PredicateFactory predicateFactory, List<QueryBuilderInterceptor> interceptors, Map<String, ParameterProvider<?>> parameterProviders, org.hibernate.Session session, CriteriaBuilderWrapper criteriaBuilder) 
 
- 
- 
Method Details- 
select- Parameters:
- path- a path that should be selected by this handler.
 
- 
processAdditionalQueryprotected void processAdditionalQuery(AbstractToManySelectionPathHandler.QueryHolder queryHolder, List<Path> paths) - Specified by:
- processAdditionalQueryin class- AbstractToManySelectionPathHandler
 
- 
processResultspublic <RT> void processResults(List<Object[]> queryResults, List<RT> target, SelectionRegistry selectionRegistry, ResultRowMapper<RT> mapper) Description copied from interface:SelectionPathHandlerThis is called after the query was executed. The handler is expected to map the query results to the target array that is returned from the query builder.- Parameters:
- queryResults- the query result, contains all paths added during- SelectionPathHandler.processSelection(SelectionRegistry)
- target- the list of arrays that will be returned from the query builder
 
- 
loadBinaryDataprotected abstract Map<Serializable,BinaryData> loadBinaryData(Path path, List<Serializable> allKeys) 
 
-