org.codelabor.example.user.daos
Class RoleDAOImpl

java.lang.Object
  extended by org.codelabor.system.daos.BaseDAOImpl
      extended by org.codelabor.example.user.daos.RoleDAOImpl
All Implemented Interfaces:
RoleDAO

public class RoleDAOImpl
extends org.codelabor.system.daos.BaseDAOImpl
implements RoleDAO

역할 DTO 구현 클래스

Author:
Shin Sangjae

Field Summary
 
Fields inherited from class org.codelabor.system.daos.BaseDAOImpl
idGenerationService, logger, loggerName, messageSource, propertiesService, queryService
 
Constructor Summary
RoleDAOImpl()
           
 
Method Summary
 int deleteRole()
          역할 정보를 삭제한다.
 int deleteRole(String roleId)
          역할 정보를 삭제한다.
 int insertRole(RoleDTO roleDTO)
          역할 DTO를 입력한다.
 List<RoleDTO> selectRole()
          역할 정보를 가져온다.
 RoleDTO selectRoleByRoleId(String roleId)
          역할 정보를 가져온다.
 List<RoleDTO> selectRoleByUserId(String userId)
          역할 정보를 가져온다.
 int updateRole(RoleDTO roleDTO)
          역할 DTO를 수정한다.
 
Methods inherited from class org.codelabor.system.daos.BaseDAOImpl
getIdGenerationService, getLoggerName, getMessageSource, getPropertiesService, getQueryService, setIdGenerationService, setLoggerName, setMessageSource, setPropertiesService, setQueryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleDAOImpl

public RoleDAOImpl()
Method Detail

insertRole

public int insertRole(RoleDTO roleDTO)
               throws Exception
Description copied from interface: RoleDAO
역할 DTO를 입력한다.

Specified by:
insertRole in interface RoleDAO
Parameters:
roleDTO - 역할 DTO
Returns:
입력 건수
Throws:
Exception - 예외

selectRole

public List<RoleDTO> selectRole()
                         throws Exception
Description copied from interface: RoleDAO
역할 정보를 가져온다.

Specified by:
selectRole in interface RoleDAO
Returns:
역할 DTO List
Throws:
Exception - 예외

selectRoleByRoleId

public RoleDTO selectRoleByRoleId(String roleId)
                           throws Exception
Description copied from interface: RoleDAO
역할 정보를 가져온다.

Specified by:
selectRoleByRoleId in interface RoleDAO
Parameters:
roleId - 역할 Id
Returns:
역할 DTO
Throws:
Exception - 예외

deleteRole

public int deleteRole(String roleId)
               throws Exception
Description copied from interface: RoleDAO
역할 정보를 삭제한다.

Specified by:
deleteRole in interface RoleDAO
Returns:
삭제 건수
Throws:
Exception - 예외

deleteRole

public int deleteRole()
               throws Exception
Description copied from interface: RoleDAO
역할 정보를 삭제한다.

Specified by:
deleteRole in interface RoleDAO
Returns:
삭제 건수
Throws:
Exception - 예외

updateRole

public int updateRole(RoleDTO roleDTO)
               throws Exception
Description copied from interface: RoleDAO
역할 DTO를 수정한다.

Specified by:
updateRole in interface RoleDAO
Parameters:
roleDTO - 역할 DTO
Returns:
수정 건수
Throws:
Exception - 예외

selectRoleByUserId

public List<RoleDTO> selectRoleByUserId(String userId)
                                 throws Exception
Description copied from interface: RoleDAO
역할 정보를 가져온다.

Specified by:
selectRoleByUserId in interface RoleDAO
Parameters:
userId - 사용자 Id
Returns:
역할 DTO List
Throws:
Exception - 예외


Copyright © 2010 CODELABOR. All Rights Reserved.