KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > dataxs > OwxUserRoles


1 package com.raptus.owxv3.api.dataxs;
2
3
4 /******************SQL2JAVA_IMPORT_BEGIN******************/
5
6 /******************SQL2JAVA_IMPORT_END********************/
7
8
9 public class OwxUserRoles
10 /******************SQL2JAVA_EXTENDS_BEGIN******************/
11
12 /******************SQL2JAVA_EXTENDS_END********************/
13
14 {
15
16 /******************SQL2JAVA_CLASS_BEGIN******************/
17
18 /******************SQL2JAVA_CLASS_END********************/
19
20
21     private String JavaDoc _userName;
22     private boolean __userName_is_modified;
23     private String JavaDoc _roleName;
24     private boolean __roleName_is_modified;
25     private int _userId;
26     private boolean __userId_is_modified;
27     private boolean _isNew = true;
28
29     public String JavaDoc getUserName() { return _userName; }
30     public void setUserName(String JavaDoc newVal) { this._userName = newVal; __userName_is_modified = true; }
31     public boolean userNameIsModifiedS2j() { return __userName_is_modified; }
32     public String JavaDoc getRoleName() { return _roleName; }
33     public void setRoleName(String JavaDoc newVal) { this._roleName = newVal; __roleName_is_modified = true; }
34     public boolean roleNameIsModifiedS2j() { return __roleName_is_modified; }
35     public int getUserId() { return _userId; }
36     public void setUserId(int newVal) { this._userId = newVal; __userId_is_modified = true; }
37     public boolean userIdIsModifiedS2j() { return __userId_is_modified; }
38     public boolean isNew() { return _isNew; }
39     public void setIsNew(boolean isNew) { this._isNew = isNew; }
40
41     public boolean isModifiedS2J() {
42         return __userName_is_modified ||
43         __roleName_is_modified ||
44         __userId_is_modified;
45     }
46
47     public void resetIsModifiedS2J() {
48         __userName_is_modified = false;
49         __roleName_is_modified = false;
50         __userId_is_modified = false;
51     }
52
53 }
54
Popular Tags