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

com.moon.data.accessor.DataAccessor Maven / Gradle / Ivy

package com.moon.data.accessor;

import com.moon.data.Record;

/**
 * @author moonsky
 */
public interface DataAccessor, ID> extends BaseAccessor {

    /**
     * 逻辑删除
     *
     * @param id ID
     */
    void disableById(ID id);

    /**
     * 逻辑删除
     *
     * @param entity 将要删除的对象
     */
    void disable(T entity);

    /**
     * 逻辑删除
     *
     * @param entities 将要删除的对象
     */
    void disableAll(Iterable entities);

    /**
     * 逻辑删除
     *
     * @param first    将要删除的对象
     * @param second   将要删除的对象
     * @param entities 将要删除的对象
     * @param       对象子类
     */
     void disableAll(S first, S second, S... entities);
}