m2u-upass-core / src / my / com / upass / dao / UserDAO.java @ 17:4173ef25ee8d
History | View | Annotate | Download (1.57 KB)
1 |
/**
|
---|---|
2 |
* Copyright (M) 2009 Penril Datability (M) Sdn Bhd All rights reserved.
|
3 |
*
|
4 |
* This software is copyrighted. Under the copyright laws, this software
|
5 |
* may not be copied, in whole or in part, without prior written consent
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is
|
7 |
* provided under the terms of a license between Penril Datability (M)
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that
|
9 |
* license.
|
10 |
*/
|
11 |
|
12 |
package my.com.upass.dao; |
13 |
import java.util.List; |
14 |
|
15 |
import my.com.upass.pojo.UserBean; |
16 |
import my.com.upass.pojo.UserBeanBackup; |
17 |
import net.penril.generic.hibernate.GenericDAO; |
18 |
|
19 |
/**
|
20 |
* PROGRAMMER: Danniell
|
21 |
* CHANGE-NO:
|
22 |
* TASK-NO:
|
23 |
* DATE CREATED: Dec 3, 2010
|
24 |
* TAG AS:
|
25 |
* REASON(S):
|
26 |
* MODIFICATION:
|
27 |
*/
|
28 |
|
29 |
/**
|
30 |
* Represents the UPASS User Data Access Object
|
31 |
*/
|
32 |
public interface UserDAO extends GenericDAO<UserBean, Long> |
33 |
{ |
34 |
public UserBean getUserFromStore(String userAlias, int sqlMode); |
35 |
|
36 |
public UserBean getUserFromStore(String userAlias); |
37 |
|
38 |
public boolean updateUserToStore(UserBean userBean); |
39 |
|
40 |
public boolean insertUserToStore(UserBean userBean); |
41 |
|
42 |
public boolean deleteUser(UserBean userBean); |
43 |
|
44 |
public boolean insertUserToBackupStore(UserBeanBackup userBean); |
45 |
|
46 |
public UserBeanBackup getUserBackupFromStore(String userAlias); |
47 |
|
48 |
UserBean getTbAmUserByUserAlias (String userAlias) throws Exception; |
49 |
|
50 |
UserBean getTbAmUserByUserId (Long tUserId) throws Exception; |
51 |
|
52 |
void deleteTbAmUser (Integer tUserId) throws Exception; |
53 |
|
54 |
public List<UserBean> getAllUser () throws Exception; |
55 |
} |