win.doyto.query.service.CrudService Maven / Gradle / Ivy
package win.doyto.query.service;
import win.doyto.query.core.CommonCrudService;
import win.doyto.query.entity.Persistable;
import java.io.Serializable;
import java.util.List;
/**
* CrudService
*
* @author f0rb
*/
public interface CrudService, I extends Serializable, Q> extends CommonCrudService {
E get(I id);
/**
* force to get a new entity object from database
*
* @param id entity id
* @return a new entity object
*/
E fetch(I id);
List queryIds(Q query);
E delete(I id);
}