public interface DocumentWorkflow
DocumentTemplate.
The default implementation follows:
DocumentEventPersistManager.firePreEntity(Object)
DocumentEventPersistManager.firePreDocumentEntity(Object)
DocumentEntityConverter.toDocument(Object)
DocumentEventPersistManager.firePreDocument(DocumentEntity)}
Database alteration
DocumentEventPersistManager.firePostDocument(DocumentEntity)
| Modifier and Type | Method and Description |
|---|---|
<T> T |
flow(T entity,
UnaryOperator<org.jnosql.diana.api.document.DocumentEntity> action)
Executes the workflow to do an interaction on a database document collection.
|
<T> T flow(T entity,
UnaryOperator<org.jnosql.diana.api.document.DocumentEntity> action)
T - the entity typeentity - the entity to be savedaction - the alteration to be executed on databaseDocumentTemplate#insert(Object)
DocumentTemplate#update(Object)Copyright © 2018. All rights reserved.