1   /**
2    * UserGroupRoleSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portal.model;
9   
10  public class UserGroupRoleSoap  implements java.io.Serializable {
11      private long groupId;
12  
13      private com.liferay.client.soap.portal.service.persistence.UserGroupRolePK primaryKey;
14  
15      private long roleId;
16  
17      private long userId;
18  
19      public UserGroupRoleSoap() {
20      }
21  
22      public UserGroupRoleSoap(
23             long groupId,
24             com.liferay.client.soap.portal.service.persistence.UserGroupRolePK primaryKey,
25             long roleId,
26             long userId) {
27             this.groupId = groupId;
28             this.primaryKey = primaryKey;
29             this.roleId = roleId;
30             this.userId = userId;
31      }
32  
33  
34      /**
35       * Gets the groupId value for this UserGroupRoleSoap.
36       * 
37       * @return groupId
38       */
39      public long getGroupId() {
40          return groupId;
41      }
42  
43  
44      /**
45       * Sets the groupId value for this UserGroupRoleSoap.
46       * 
47       * @param groupId
48       */
49      public void setGroupId(long groupId) {
50          this.groupId = groupId;
51      }
52  
53  
54      /**
55       * Gets the primaryKey value for this UserGroupRoleSoap.
56       * 
57       * @return primaryKey
58       */
59      public com.liferay.client.soap.portal.service.persistence.UserGroupRolePK getPrimaryKey() {
60          return primaryKey;
61      }
62  
63  
64      /**
65       * Sets the primaryKey value for this UserGroupRoleSoap.
66       * 
67       * @param primaryKey
68       */
69      public void setPrimaryKey(com.liferay.client.soap.portal.service.persistence.UserGroupRolePK primaryKey) {
70          this.primaryKey = primaryKey;
71      }
72  
73  
74      /**
75       * Gets the roleId value for this UserGroupRoleSoap.
76       * 
77       * @return roleId
78       */
79      public long getRoleId() {
80          return roleId;
81      }
82  
83  
84      /**
85       * Sets the roleId value for this UserGroupRoleSoap.
86       * 
87       * @param roleId
88       */
89      public void setRoleId(long roleId) {
90          this.roleId = roleId;
91      }
92  
93  
94      /**
95       * Gets the userId value for this UserGroupRoleSoap.
96       * 
97       * @return userId
98       */
99      public long getUserId() {
100         return userId;
101     }
102 
103 
104     /**
105      * Sets the userId value for this UserGroupRoleSoap.
106      * 
107      * @param userId
108      */
109     public void setUserId(long userId) {
110         this.userId = userId;
111     }
112 
113     private java.lang.Object __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object obj) {
115         if (!(obj instanceof UserGroupRoleSoap)) return false;
116         UserGroupRoleSoap other = (UserGroupRoleSoap) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true && 
125             this.groupId == other.getGroupId() &&
126             ((this.primaryKey==null && other.getPrimaryKey()==null) || 
127              (this.primaryKey!=null &&
128               this.primaryKey.equals(other.getPrimaryKey()))) &&
129             this.roleId == other.getRoleId() &&
130             this.userId == other.getUserId();
131         __equalsCalc = null;
132         return _equals;
133     }
134 
135     private boolean __hashCodeCalc = false;
136     public synchronized int hashCode() {
137         if (__hashCodeCalc) {
138             return 0;
139         }
140         __hashCodeCalc = true;
141         int _hashCode = 1;
142         _hashCode += new Long(getGroupId()).hashCode();
143         if (getPrimaryKey() != null) {
144             _hashCode += getPrimaryKey().hashCode();
145         }
146         _hashCode += new Long(getRoleId()).hashCode();
147         _hashCode += new Long(getUserId()).hashCode();
148         __hashCodeCalc = false;
149         return _hashCode;
150     }
151 
152     // Type metadata
153     private static org.apache.axis.description.TypeDesc typeDesc =
154         new org.apache.axis.description.TypeDesc(UserGroupRoleSoap.class, true);
155 
156     static {
157         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "UserGroupRoleSoap"));
158         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
159         elemField.setFieldName("groupId");
160         elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
161         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
162         elemField.setNillable(false);
163         typeDesc.addFieldDesc(elemField);
164         elemField = new org.apache.axis.description.ElementDesc();
165         elemField.setFieldName("primaryKey");
166         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
167         elemField.setXmlType(new javax.xml.namespace.QName("http://persistence.service.portal.liferay.com", "UserGroupRolePK"));
168         elemField.setNillable(true);
169         typeDesc.addFieldDesc(elemField);
170         elemField = new org.apache.axis.description.ElementDesc();
171         elemField.setFieldName("roleId");
172         elemField.setXmlName(new javax.xml.namespace.QName("", "roleId"));
173         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
174         elemField.setNillable(false);
175         typeDesc.addFieldDesc(elemField);
176         elemField = new org.apache.axis.description.ElementDesc();
177         elemField.setFieldName("userId");
178         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
179         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
180         elemField.setNillable(false);
181         typeDesc.addFieldDesc(elemField);
182     }
183 
184     /**
185      * Return type metadata object
186      */
187     public static org.apache.axis.description.TypeDesc getTypeDesc() {
188         return typeDesc;
189     }
190 
191     /**
192      * Get Custom Serializer
193      */
194     public static org.apache.axis.encoding.Serializer getSerializer(
195            java.lang.String mechType, 
196            java.lang.Class _javaType,  
197            javax.xml.namespace.QName _xmlType) {
198         return 
199           new  org.apache.axis.encoding.ser.BeanSerializer(
200             _javaType, _xmlType, typeDesc);
201     }
202 
203     /**
204      * Get Custom Deserializer
205      */
206     public static org.apache.axis.encoding.Deserializer getDeserializer(
207            java.lang.String mechType, 
208            java.lang.Class _javaType,  
209            javax.xml.namespace.QName _xmlType) {
210         return 
211           new  org.apache.axis.encoding.ser.BeanDeserializer(
212             _javaType, _xmlType, typeDesc);
213     }
214 
215 }
216