public interface DepartmentDAO
限定符和类型 | 方法和说明 |
---|---|
boolean |
delete(Department ment)
删除部门
|
boolean |
deleteByID(long id)
根据id删除某个部门
|
java.util.List |
findAll()
返回所有的部门
|
Department |
findByID(long id)
根据id返回某个部门
|
Department |
findByNameAndPid(java.lang.String name,
long pid)
根据部门名称和部门名查找部门
|
Department |
findDepartmentByName(java.lang.String departmentName)
根据部门名获取部门
|
Department |
findDepartmentByNameAndParentName(java.lang.String deparmentName,
java.lang.String parentDepartmentName) |
java.util.Iterator |
getUserAndPostIterator(long id,
boolean toObj)
返回该部门下所有用户与职位的信息
|
void |
save(Department ment)
保存部门
|
void |
transfer(Department ment)
转移部门
|
boolean |
updateDepartment(Department department)
更新部门设置
|
boolean |
updateDepartmentName(long id,
java.lang.String newName)
更新部门设置
|
void save(Department ment) throws java.lang.Exception
ment
- 部门对象java.lang.Exception
void transfer(Department ment) throws java.lang.Exception
ment
- 部门对象java.lang.Exception
boolean delete(Department ment) throws java.lang.Exception
ment
- 部门对象java.lang.Exception
boolean deleteByID(long id) throws java.lang.Exception
id
- 部门idjava.lang.Exception
Department findByID(long id) throws java.lang.Exception
id
- 部门idjava.lang.Exception
java.util.List findAll() throws java.lang.Exception
java.lang.Exception
boolean updateDepartmentName(long id, java.lang.String newName) throws java.lang.Exception
id
- 部门idnewName
- 新部门名称java.lang.Exception
boolean updateDepartment(Department department) throws java.lang.Exception
department
- 新部门java.lang.Exception
Department findDepartmentByNameAndParentName(java.lang.String deparmentName, java.lang.String parentDepartmentName) throws java.lang.Exception
java.lang.Exception
Department findByNameAndPid(java.lang.String name, long pid) throws java.lang.Exception
name
- 部门名称pid
- 父idjava.lang.Exception
java.util.Iterator getUserAndPostIterator(long id, boolean toObj) throws java.lang.Exception
id
- 部门idtoObj
- 是否转化为对象java.lang.Exception
Department findDepartmentByName(java.lang.String departmentName) throws java.lang.Exception
- java.lang.Exception