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

win.doyto.query.service.DynamicService 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;

/**
 * DynamicService
 *
 * @author f0rb on 2019-05-28
 */
public interface DynamicService, I extends Serializable, Q> extends CommonCrudService {

    /**
     * Get origin entity from sharding table
     *
     * @param param an entity just contains id and information of sharding table
     * @return origin entity
     */
    E get(E param);

    /**
     * force to get a new entity object from database
     *
     * @param param entity id
     * @return a new entity object
     */
    E fetch(E param);

    /**
     * Delete entity from sharding table
     *
     * @param param an entity just contains id and information of sharding table
     * @return origin entity
     */
    E delete(E param);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy