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

com.yqjr.framework.base.BaseDao Maven / Gradle / Ivy

/**
 * 
 */
package com.yqjr.framework.base;

import java.util.List;

import com.yqjr.framework.annotation.FrameworkDao;

/**
 * ClassName: BaseDao 
* Description: 数据访问层基类
* Create By: admin
* Create Date: 2017年4月17日 下午4:06:17
* Modified By:
* Modified Date:
* Modified Content:
* Version: 1.0
*/ @SuppressWarnings("rawtypes") @FrameworkDao public interface BaseDao, C extends BaseCondition> { /** * 插入数据 * * @param entity 实体类 * @return int */ public int insert(T entity); /** * 更新数据 * * @param entity 实体类 * @return int */ public int update(T entity); /** * 删除数据 * * @param entity 实体类 * @return int */ public int delete(T entity); /** * Description: 根据ID查询数据
* Create By: admin
* Create Date: 2017年4月26日 下午8:04:04 * * @param id 主键id * @return 实体类 */ public T id(ID id); /** * 获取单条数据 * * @param entity 实体类 * @return 实体类 */ public T get(T entity); /** * 查询实体条件查询列表数据 * * @param entity 实体类 * @return 实体类List */ public List findList(T entity); /** * Description: 根据条件查询列表数据
* Create By: admin
* Create Date: 2017年4月27日 上午8:16:16 * * @param condition 查询条件 * @return List */ public List findByCondition(C condition); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy