@Repository public class PersonalInformationHibernateDAO extends Object implements PersonalInformationDAO
| Constructor and Description |
|---|
PersonalInformationHibernateDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(PersonalInformation egpimsPersonalInformation) |
void |
deleteLangKnownForEmp(PersonalInformation personalInformation) |
List |
getAllActiveUsersByGivenDesg(Integer desgId) |
List |
getAllDesignationByDept(Integer deptId) |
List<PersonalInformation> |
getAllEmpByGrade(Integer gradeId) |
Map |
getAllPIMap() |
org.hibernate.Session |
getCurrentSession() |
PersonalInformation |
getEmployee(Integer deptId,
Integer designationId,
Long boundaryId)
This is used for workflow
Getting employee by passing dept,desig,boundary
|
PersonalInformation |
getEmployeeByFunctionary(Long deptId,
Long designationId,
Long boundaryId,
Integer functionaryId)
This is used for workflow
Getting employee by passing deptId,desigId,boundaryId,functionaryId
|
List |
getListOfPersonalInformationByEmpIdsList(List empIdsList) |
List |
getListOfUsersByBoundaryId(Long boundaryId) |
List |
getListOfUsersForGivenBoundaryId(Long boundaryId)
To get list of users which belong to given boundary.
|
List |
getListOfUsersNotMappedToEmp()
This is used for getting the users (both active and inactive) who are not mapped to any of the employees
|
PersonalInformation |
getPersonalInformationByID(Integer idPersonalInformation) |
PersonalInformation |
getPersonalInformationByUserId(Long userId) |
PersonalInformation |
getTempAssignedEmployeeByDeptDesigFunctionaryDate(Integer deptId,
Integer desigId,
Integer functionaryId,
Date onDate)
Returning temporary assigned employee object by pepartment,designation,functionary,date
|
void |
update(PersonalInformation egpimsPersonalInformation) |
public org.hibernate.Session getCurrentSession()
public PersonalInformation getPersonalInformationByID(Integer idPersonalInformation)
getPersonalInformationByID in interface PersonalInformationDAOpublic Map getAllPIMap()
getAllPIMap in interface PersonalInformationDAOpublic PersonalInformation getPersonalInformationByUserId(Long userId)
getPersonalInformationByUserId in interface PersonalInformationDAOpublic void deleteLangKnownForEmp(PersonalInformation personalInformation)
deleteLangKnownForEmp in interface PersonalInformationDAOpublic List getListOfPersonalInformationByEmpIdsList(List empIdsList)
getListOfPersonalInformationByEmpIdsList in interface PersonalInformationDAOpublic List getListOfUsersByBoundaryId(Long boundaryId) throws org.egov.commons.exception.NoSuchObjectException
org.egov.commons.exception.NoSuchObjectExceptionpublic List getListOfUsersForGivenBoundaryId(Long boundaryId) throws org.egov.commons.exception.NoSuchObjectException
getListOfUsersForGivenBoundaryId in interface PersonalInformationDAOboundaryId - org.egov.commons.exception.NoSuchObjectExceptionpublic PersonalInformation getEmployee(Integer deptId, Integer designationId, Long boundaryId) throws org.egov.commons.exception.TooManyValuesException, org.egov.commons.exception.NoSuchObjectException
getEmployee in interface PersonalInformationDAOdeptId - designationId - Boundaryid - org.egov.commons.exception.TooManyValuesExceptionorg.egov.commons.exception.NoSuchObjectExceptionpublic PersonalInformation getEmployeeByFunctionary(Long deptId, Long designationId, Long boundaryId, Integer functionaryId) throws org.egov.commons.exception.TooManyValuesException, org.egov.commons.exception.NoSuchObjectException
getEmployeeByFunctionary in interface PersonalInformationDAOdeptId - designationId - Boundaryid - org.egov.commons.exception.TooManyValuesExceptionorg.egov.commons.exception.NoSuchObjectExceptionpublic PersonalInformation getTempAssignedEmployeeByDeptDesigFunctionaryDate(Integer deptId, Integer desigId, Integer functionaryId, Date onDate) throws Exception
getTempAssignedEmployeeByDeptDesigFunctionaryDate in interface PersonalInformationDAOdeptId - DesigId - functionaryId - onDate - Exceptionpublic List getAllDesignationByDept(Integer deptId) throws org.egov.commons.exception.TooManyValuesException, org.egov.commons.exception.NoSuchObjectException
getAllDesignationByDept in interface PersonalInformationDAOorg.egov.commons.exception.TooManyValuesExceptionorg.egov.commons.exception.NoSuchObjectExceptionpublic List getAllActiveUsersByGivenDesg(Integer desgId)
getAllActiveUsersByGivenDesg in interface PersonalInformationDAOpublic List<PersonalInformation> getAllEmpByGrade(Integer gradeId) throws Exception
getAllEmpByGrade in interface PersonalInformationDAOExceptionpublic List getListOfUsersNotMappedToEmp()
getListOfUsersNotMappedToEmp in interface PersonalInformationDAO@Transactional public void create(PersonalInformation egpimsPersonalInformation)
create in interface PersonalInformationDAO@Transactional public void update(PersonalInformation egpimsPersonalInformation)
update in interface PersonalInformationDAOCopyright © 2015–2017 eGovernments Foundation. All rights reserved.