Class BinaryDataAccessorImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.binary.BinaryDataAccessorImpl
- All Implemented Interfaces:
BinaryDataAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryDataAccessorImpl(DataModel dataModel, PersistenceService persistenceService, BinaryAccessProvider binaryAccessProvider) -
Method Summary
Modifier and TypeMethodDescriptionfetchDataForDetailDocument(EntityModel entityModel, String fieldName, List<Serializable> keys) Efficiently retrievesBinaryDatainstances for detail documents of several entities.fetchDataForResource(List<Serializable> keys) Efficiently retrievesBinaryDatainstances for (non entity-doc) resources.
-
Constructor Details
-
BinaryDataAccessorImpl
public BinaryDataAccessorImpl(DataModel dataModel, PersistenceService persistenceService, BinaryAccessProvider binaryAccessProvider)
-
-
Method Details
-
fetchDataForDetailDocument
public Map<Serializable,BinaryData> fetchDataForDetailDocument(EntityModel entityModel, String fieldName, List<Serializable> keys) Description copied from interface:BinaryDataAccessorEfficiently retrievesBinaryDatainstances for detail documents of several entities.- Specified by:
fetchDataForDetailDocumentin interfaceBinaryDataAccessor- Parameters:
entityModel- the entity modelfieldName- the name of the 'binary' fieldkeys- the primary keys of the entities for which the data should be fetched
-
fetchDataForResource
Description copied from interface:BinaryDataAccessorEfficiently retrievesBinaryDatainstances for (non entity-doc) resources.- Specified by:
fetchDataForResourcein interfaceBinaryDataAccessor- Parameters:
keys- the primary keys of the Resource_content entities for which the data should be fetched
-