com.avaje.ebeaninternal.server.persist.BeanPersister Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.persist;
import javax.persistence.PersistenceException;
import com.avaje.ebeaninternal.server.core.PersistRequestBean;
/**
* Defines bean insert update and delete implementation.
*/
public interface BeanPersister {
/**
* execute the insert bean request.
*/
void insert(PersistRequestBean> request) throws PersistenceException;
/**
* execute the update bean request.
*/
void update(PersistRequestBean> request) throws PersistenceException;
/**
* execute the delete bean request.
*/
int delete(PersistRequestBean> request) throws PersistenceException;
}