项目初始导入
This commit is contained in:
29
src/main/java/com/nis/web/dao/TreeDao.java
Normal file
29
src/main/java/com/nis/web/dao/TreeDao.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.TreeEntity;
|
||||
|
||||
/**
|
||||
* DAO支持类实现
|
||||
* @author ThinkGem
|
||||
* @version 2014-05-16
|
||||
* @param <T>
|
||||
*/
|
||||
public interface TreeDao<T extends TreeEntity<T>> extends CrudDao<T> {
|
||||
|
||||
/**
|
||||
* 找到所有子节点
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
public List<T> findByParentIdsLike(T entity);
|
||||
|
||||
/**
|
||||
* 更新所有父节点字段
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
public int updateParentIds(T entity);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user