org.codelabor.example.user.daos
Class UserDAOImpl

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

public class UserDAOImpl
extends org.codelabor.system.daos.BaseDAOImpl
implements UserDAO

사용자 DAO 구현 클래스

Author:
Shin Sangjae

Field Summary
 
Fields inherited from class org.codelabor.system.daos.BaseDAOImpl
idGenerationService, logger, loggerName, messageSource, propertiesService, queryService
 
Constructor Summary
UserDAOImpl()
           
 
Method Summary
 int deleteUser()
          사용자 정보를 삭제한다.
 int deleteUser(String userId)
          사용자 정보를 삭제한다.
 int insertUser(UserDTO userDTO)
          사용자 DTO를 등록한다.
 List<UserDTO> selectUser()
          사용자 정보를 가져온다.
 UserDTO selectUserByUserId(String userId)
          사용자 정보를 가져온다.
 int updateUser(UserDTO userDTO)
          사용자 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

UserDAOImpl

public UserDAOImpl()
Method Detail

insertUser

public int insertUser(UserDTO userDTO)
               throws Exception
Description copied from interface: UserDAO
사용자 DTO를 등록한다.

Specified by:
insertUser in interface UserDAO
Parameters:
userDTO - 사용자 DTO
Returns:
입력 건수
Throws:
Exception - 예외

selectUser

public List<UserDTO> selectUser()
                         throws Exception
Description copied from interface: UserDAO
사용자 정보를 가져온다.

Specified by:
selectUser in interface UserDAO
Returns:
사용자 DTO List
Throws:
Exception - 예외

selectUserByUserId

public UserDTO selectUserByUserId(String userId)
                           throws Exception
Description copied from interface: UserDAO
사용자 정보를 가져온다.

Specified by:
selectUserByUserId in interface UserDAO
Parameters:
userId - 사용자 Id
Returns:
사용자 DTO
Throws:
Exception - 예외

deleteUser

public int deleteUser(String userId)
               throws Exception
Description copied from interface: UserDAO
사용자 정보를 삭제한다.

Specified by:
deleteUser in interface UserDAO
Parameters:
userId - 사용자 Id
Returns:
삭제 건수
Throws:
Exception - 예외

deleteUser

public int deleteUser()
               throws Exception
Description copied from interface: UserDAO
사용자 정보를 삭제한다.

Specified by:
deleteUser in interface UserDAO
Returns:
삭제 건수
Throws:
Exception - 예외

updateUser

public int updateUser(UserDTO userDTO)
               throws Exception
Description copied from interface: UserDAO
사용자 DTO를 수정한다.

Specified by:
updateUser in interface UserDAO
Parameters:
userDTO - 사용자 DTO
Returns:
수정 건수
Throws:
Exception - 예외


Copyright © 2010 CODELABOR. All Rights Reserved.