src/com/dream/dao/DAO.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.dream.dao;

import java.util.LinkedHashMap;

import com.dream.page.QueryResult;

public interface DAO {

	/**
	 * 保存实体
	 * @param entity
	 */
	public void save(Object entity);
	/**
	 * 保存对象数组
	 * @param entitys
	 */
	public void saves(Object[] entitys) ;
	/**
	 * 更新实体
	 * @param entity 
	 */
	public void update(Object entity);
	
	/**
	 * 根据实体ID删除 
	 * @param entityid 实体id
	 */
	public <T> void delete(Class<T> entityclass,Object entityid);
	
	/**
	 * 根据实体数组删除 实体id
	 * @param entityids
	 */
	public <T> void delete(Class<T> entityclass,Object[] entityids);
	/**
	 * 获取实体
	 * @param <T>
	 * @param entityclass 实体类
	 * @param entityid 实体id
	 * @return
	 */
	public <T> T find(Class<T> entityclass,Object entityid);
	/**
	 * 获取实体,延迟加载
	 * @param <T>
	 * @param entityclass 实体类
	 * @param entityid 实体id
	 * @return
	 */
	public <T> T getReference(Class<T> entityclass,Object entityid);
	/**
	 * 获取分页数据
	 * @param <T>
	 * @param entityclass
	 * @param firstindex
	 * @param maxresult
	 * @return
	 */
	public <T> QueryResult getScrollData(Class<T> entityclass,int firstindex,int maxresult,
后面还有 12 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。