T - a entidade de anexoC - a entidade de anexo conteudopublic abstract class ServerAbstractAttachmentPersistenceService<T extends org.opensingular.form.persistence.entity.AttachmentEntity,C extends org.opensingular.form.persistence.entity.AttachmentContentEntity>
extends org.opensingular.form.persistence.service.AttachmentPersistenceService<T,C>
| Constructor and Description |
|---|
ServerAbstractAttachmentPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
org.opensingular.form.persistence.dto.AttachmentRef |
addAttachment(File file,
long length,
String name,
String hash)
Adiciona o anexo ao banco de dados, faz o calculo de HASH
|
copy, createRef, deleteAttachment, deleteAttachmentAndContent, getAttachment, getAttachmentEntity, getAttachmentEntity, getAttachments, listOldOrphanAttachments, loadAttachmentContentpublic ServerAbstractAttachmentPersistenceService()
public org.opensingular.form.persistence.dto.AttachmentRef addAttachment(File file, long length, String name, String hash)
addAttachment in interface org.opensingular.form.type.core.attachment.IAttachmentPersistenceHandler<org.opensingular.form.persistence.dto.AttachmentRef>addAttachment in class org.opensingular.form.persistence.service.AttachmentPersistenceService<T extends org.opensingular.form.persistence.entity.AttachmentEntity,C extends org.opensingular.form.persistence.entity.AttachmentContentEntity>file - o arquivo a ser inseridolength - tamanho do arquivoname - o nomeCopyright © 2020. All rights reserved.