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

com.fhs.trans.service.AutoTransable Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
package com.fhs.trans.service;


import com.fhs.core.trans.vo.VO;

import java.util.ArrayList;
import java.util.List;

/**
 * 只有实现了这个接口的才能自动翻译
 * by jackwang
 *
 * @author jackwang
 * @date 2020-05-19 10:26:15
 */
public interface AutoTransable {

    /**
     * 根据ids查询,过期啦,请使用 selectByIds
     * @param ids
     * @return
     */
    @Deprecated
    default List findByIds(List ids){
        return new ArrayList<>();
    }

    /**
     * 根据ids查询
     * @param ids
     * @return
     */
    default List selectByIds(List ids){
        return this.findByIds(ids);
    }

    /**
     * 获取db中所有的数据
     *
     * @return db中所有的数据
     */
    default List select(){
        return new ArrayList<>();
    }

    /**
     * 根据id获取 vo
     *
     * @param primaryValue id
     * @return vo
     */
    V selectById(Object primaryValue);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy