Class DocumentDaoImpl
java.lang.Object
ch.tocco.nice2.outputcenter.impl.dao.DocumentDaoImpl
- All Implemented Interfaces:
DocumentDao
-
Constructor Summary
ConstructorDescriptionDocumentDaoImpl
(BinaryFactory binaryFactory, CommandExecutor commandExecutor, OutputJobDocumentDao outputJobDocumentDao) -
Method Summary
Modifier and TypeMethodDescriptionvoid
save
(Entity entity, String fieldName, OutputCenterInputSupplier documentSupplier, @Nullable String fileName) Save the documentSupplier to the provided field and entity
-
Constructor Details
-
DocumentDaoImpl
public DocumentDaoImpl(BinaryFactory binaryFactory, CommandExecutor commandExecutor, OutputJobDocumentDao outputJobDocumentDao)
-
-
Method Details
-
save
public void save(Entity entity, String fieldName, OutputCenterInputSupplier documentSupplier, @Nullable @Nullable String fileName) Description copied from interface:DocumentDao
Save the documentSupplier to the provided field and entity- Specified by:
save
in interfaceDocumentDao
- Parameters:
entity
- the entity to save the document onfieldName
- name of the document fielddocumentSupplier
- a supplier for the documentfileName
- an optional filename for the document
-
get
- Specified by:
get
in interfaceDocumentDao
-
getOutputJobDocumentDao
- Specified by:
getOutputJobDocumentDao
in interfaceDocumentDao
-