Class DocumentDaoImpl
java.lang.Object
ch.tocco.nice2.outputcenter.impl.dao.DocumentDaoImpl
- All Implemented Interfaces:
DocumentDao
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentDaoImpl(BinaryFactory binaryFactory, CommandExecutor commandExecutor, OutputJobDocumentDao outputJobDocumentDao) -
Method Summary
Modifier and TypeMethodDescriptionvoidsave(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:DocumentDaoSave the documentSupplier to the provided field and entity- Specified by:
savein 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:
getin interfaceDocumentDao
-
getOutputJobDocumentDao
- Specified by:
getOutputJobDocumentDaoin interfaceDocumentDao
-