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

com.zengtengpeng.common.dao.BaseDao Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.zengtengpeng.common.dao;

import java.util.List;

public interface BaseDao {

    /**
     * 新增
     * @param t
     * @return
     */
    int insert(T t);

    /**
     * 根据主键删除
     * @param t
     * @return
     */
    int deleteByPrimaryKey(T t);

    /**
     * 更新(忽略null)
     */
    Integer update(T t);

    /**
     * 根据主键查询
     * @param t
     * @return
     */
    T selectByPrimaryKey(T t);

    /**
     * 根据条件查询
     */
    List selectByCondition(T t);

    /**
     * 查询所有
     * @return
     */
    List selectAll(T t);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy