m2u-upass-core / src / my / com / upass / dao / UserTokenDAO.java @ 67:fdb128af4d89
History | View | Annotate | Download (1.78 KB)
1 | 0:02300db8682b | hadi | /**
|
---|---|---|---|
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 | package my.com.upass.dao; |
||
12 | |||
13 | import java.util.List; |
||
14 | |||
15 | 46:8f67d8567943 | hadi | import my.com.upass.generic.hibernate.GenericDAO; |
16 | 0:02300db8682b | hadi | import my.com.upass.pojo.UserTokenBean; |
17 | |||
18 | /**
|
||
19 | * PROGRAMMER: Danniell
|
||
20 | * CHANGE-NO:
|
||
21 | * TASK-NO:
|
||
22 | * DATE CREATED: Dec 3, 2010
|
||
23 | * TAG AS:
|
||
24 | * REASON(S):
|
||
25 | * MODIFICATION:
|
||
26 | */
|
||
27 | |||
28 | /**
|
||
29 | * Represents the User Data Access Object
|
||
30 | */
|
||
31 | 24:dd5aa1133c23 | mohd | public interface UserTokenDAO extends GenericDAO |
32 | 0:02300db8682b | hadi | { |
33 | public boolean insertTokenToStore(UserTokenBean userTokenBean); |
||
34 | |||
35 | public boolean updateTokenToStore(UserTokenBean userTokenBean); |
||
36 | |||
37 | public UserTokenBean getTokenFromStoreBySerialNumber(String serialNumber); |
||
38 | |||
39 | public UserTokenBean getTokenFromStoreByUserAlias(String userAlias); |
||
40 | |||
41 | public boolean deleteTokenFromStoreBySerialNumber(String serialNumber); |
||
42 | |||
43 | public int getTokenListSizeFromStoreByCriteria (String batchNumber, |
||
44 | String serialNumber) throws Exception; |
||
45 | |||
46 | public List<UserTokenBean> getTokenListFromStoreByCriteria (String batchNumber, |
||
47 | String serialNumber, int startIndex, int rowPerPage) throws Exception; |
||
48 | |||
49 | void insertVascoToken (List<UserTokenBean> tokens) throws Exception; |
||
50 | |||
51 | UserTokenBean enquireTokenByUserId(String p_sUserId) throws Exception; |
||
52 | |||
53 | boolean checkTokenExistenceBySerialNumber(String serial) throws Exception; |
||
54 | |||
55 | List<UserTokenBean> getTokenList (String batch, String serial) throws Exception; |
||
56 | } |