Statistics
| Branch: | Revision:

m2u-upass-core / src / my / com / upass / pojo / TbAmTacBackup.java @ 0:02300db8682b

History | View | Annotate | Download (3.48 KB)

1
package my.com.upass.pojo;
2

    
3
import java.io.Serializable;
4
import java.sql.Date;
5

    
6
import net.penril.generic.hibernate.GenericDAOHibernate;
7

    
8
import org.hibernate.Criteria;
9
import org.hibernate.HibernateException;
10
import org.hibernate.criterion.Restrictions;
11

    
12
/**
13
 * 
14
 * PROGRAMMER: Gabbytian Rayvandy
15
 * CHANGE-NO:
16
 * TASK-NO:
17
 * DATE CREATED: Oct 9, 2011
18
 * TAG AS:
19
 * REASON(S):
20
 * MODIFICATION:
21
 */
22

    
23
/**
24
 * 0-true, yes
25
 * 1-false, no
26
 */
27
public class TbAmTacBackup implements Serializable
28
{
29
        private static final long serialVersionUID = 1L;
30
        private Integer oid;
31
        private Integer tuserId;
32
        private String ttacCiphertext;
33
        private Integer ttacState;
34
        private Date tdateGenerated;
35
        private Date tdateFirstUsed;
36
        private Date tdateLastUsed;
37
        private Integer tuseCount;
38
        private Integer terrorCount;
39
        private String tsessionId;
40
        
41
        private Integer convertToInteger(String str) 
42
        {
43
                return str==""||str==null||str.trim().isEmpty()?null:Integer.parseInt(str);
44
        }
45

    
46
        /**
47
         * @return the oid
48
         */
49
        public Integer getOid ()
50
        {
51
                return oid;
52
        }
53

    
54
        /**
55
         * @param oid the oid to set
56
         */
57
        public void setOid (Integer oid)
58
        {
59
                this.oid = oid;
60
        }
61

    
62
        /**
63
         * @return the tuserId
64
         */
65
        public Integer getTuserId ()
66
        {
67
                return tuserId;
68
        }
69

    
70
        /**
71
         * @param tuserId the tuserId to set
72
         */
73
        public void setTuserId (Integer tuserId)
74
        {
75
                this.tuserId = tuserId;
76
        }
77

    
78
        /**
79
         * @return the ttacCiphertext
80
         */
81
        public String getTtacCiphertext ()
82
        {
83
                return ttacCiphertext;
84
        }
85

    
86
        /**
87
         * @param ttacCiphertext the ttacCiphertext to set
88
         */
89
        public void setTtacCiphertext (String ttacCiphertext)
90
        {
91
                this.ttacCiphertext = ttacCiphertext;
92
        }
93

    
94
        /**
95
         * @return the ttacState
96
         */
97
        public Integer getTtacState ()
98
        {
99
                return ttacState;
100
        }
101

    
102
        /**
103
         * @param ttacState the ttacState to set
104
         */
105
        public void setTtacState (Integer ttacState)
106
        {
107
                this.ttacState = ttacState;
108
        }
109

    
110
        /**
111
         * @return the tdateGenerated
112
         */
113
        public Date getTdateGenerated ()
114
        {
115
                return tdateGenerated;
116
        }
117

    
118
        /**
119
         * @param tdateGenerated the tdateGenerated to set
120
         */
121
        public void setTdateGenerated (Date tdateGenerated)
122
        {
123
                this.tdateGenerated = tdateGenerated;
124
        }
125

    
126
        /**
127
         * @return the tdateFirstUsed
128
         */
129
        public Date getTdateFirstUsed ()
130
        {
131
                return tdateFirstUsed;
132
        }
133

    
134
        /**
135
         * @param tdateFirstUsed the tdateFirstUsed to set
136
         */
137
        public void setTdateFirstUsed (Date tdateFirstUsed)
138
        {
139
                this.tdateFirstUsed = tdateFirstUsed;
140
        }
141

    
142
        /**
143
         * @return the tdateLastUsed
144
         */
145
        public Date getTdateLastUsed ()
146
        {
147
                return tdateLastUsed;
148
        }
149

    
150
        /**
151
         * @param tdateLastUsed the tdateLastUsed to set
152
         */
153
        public void setTdateLastUsed (Date tdateLastUsed)
154
        {
155
                this.tdateLastUsed = tdateLastUsed;
156
        }
157

    
158
        /**
159
         * @return the tuseCount
160
         */
161
        public Integer getTuseCount ()
162
        {
163
                return tuseCount;
164
        }
165

    
166
        /**
167
         * @param tuseCount the tuseCount to set
168
         */
169
        public void setTuseCount (Integer tuseCount)
170
        {
171
                this.tuseCount = tuseCount;
172
        }
173

    
174
        /**
175
         * @return the terrorCount
176
         */
177
        public Integer getTerrorCount ()
178
        {
179
                return terrorCount;
180
        }
181

    
182
        /**
183
         * @param terrorCount the terrorCount to set
184
         */
185
        public void setTerrorCount (Integer terrorCount)
186
        {
187
                this.terrorCount = terrorCount;
188
        }
189

    
190
        /**
191
         * @return the tsessionId
192
         */
193
        public String getTsessionId ()
194
        {
195
                return tsessionId;
196
        }
197

    
198
        /**
199
         * @param tsessionId the tsessionId to set
200
         */
201
        public void setTsessionId (String tsessionId)
202
        {
203
                this.tsessionId = tsessionId;
204
        }
205
}