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