Class BinaryDataAccessorImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.binary.BinaryDataAccessorImpl
- All Implemented Interfaces:
BinaryDataAccessor
-
Constructor Summary
ConstructorDescriptionBinaryDataAccessorImpl
(DataModel dataModel, PersistenceService persistenceService, BinaryAccessProvider binaryAccessProvider) -
Method Summary
Modifier and TypeMethodDescriptionfetchDataForDetailDocument
(EntityModel entityModel, String fieldName, List<Serializable> keys) Efficiently retrievesBinaryData
instances for detail documents of several entities.fetchDataForResource
(List<Serializable> keys) Efficiently retrievesBinaryData
instances 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:BinaryDataAccessor
Efficiently retrievesBinaryData
instances for detail documents of several entities.- Specified by:
fetchDataForDetailDocument
in 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:BinaryDataAccessor
Efficiently retrievesBinaryData
instances for (non entity-doc) resources.- Specified by:
fetchDataForResource
in interfaceBinaryDataAccessor
- Parameters:
keys
- the primary keys of the Resource_content entities for which the data should be fetched
-