src/com/sys/common/IBaseDAO.java
(完整代码) 880Bpackage com.sys.common;
import java.io.Serializable;
import java.util.List;
import org.hibernate.criterion.Criterion;
import com.sys.web.fenye.util.DefaultQueryCondition;
import com.sys.web.fenye.util.Page;
public interface IBaseDAO<T, PK extends Serializable> {
void add(T obj);
void delete(T obj);
void update(T obj);
T getById(PK key);
List<T> getAll();
void delete(PK key);
List<T> search(DefaultQueryCondition<T> condition);
int getRecordsNum();
Page<T> getRecord(DefaultQueryCondition<T> condition);
List<T> getViaHql(String hql);
List<T> getViaSql(String sql);
int getRevoedsNum(String where);
Page<T> getPagers(DefaultQueryCondition<T> condition,
Criterion... criterions);
Page<T> getPagersByExample(DefaultQueryCondition<T> condition);
Page<T> getEntity(DefaultQueryCondition condition);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。