org.pipservices4.persistence.write.ISetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pip-services4-persistence Show documentation
Show all versions of pip-services4-persistence Show documentation
Persistence components for Pip.Services in Java
The newest version!
package org.pipservices4.persistence.write;
import org.pipservices4.commons.errors.ApplicationException;
import org.pipservices4.components.context.IContext;
/**
* Interface for data processing components that can set (create or update) data items.
*/
public interface ISetter {
/**
* Sets a data item. If the data item exists it updates it, otherwise it create
* a new data item.
*
* @param context (optional) a context to trace execution through call chain.
* @param entity a item to be set.
* @return updated item.
* @throws ApplicationException when error occured.
*/
T set(IContext context, T entity) throws ApplicationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy