All Downloads are FREE. Search and download functionalities are using the official Maven repository.

win.doyto.query.service.CrudService Maven / Gradle / Ivy

There is a newer version: 0.2.2.1-RELEASE
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy