m2u-upass-core / src / my / com / upass / dao / UserTokenDAO.java @ 5:f608e6319b70
History | View | Annotate | Download (1.8 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 |
package my.com.upass.dao; |
12 |
|
13 |
import java.util.List; |
14 |
|
15 |
import my.com.upass.pojo.UserTokenBean; |
16 |
import net.penril.generic.hibernate.GenericDAO; |
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 |
public interface UserTokenDAO extends GenericDAO<UserTokenBean, String> |
32 |
{ |
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 |
} |