/**
* UserGroupMembership.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.borland.sctm.ws.administration.entities;
public class UserGroupMembership implements java.io.Serializable {
private int groupId;
private java.lang.String groupName;
private int roleId;
private java.lang.String roleName;
private int userId;
public UserGroupMembership() {
}
public UserGroupMembership(
int groupId,
java.lang.String groupName,
int roleId,
java.lang.String roleName,
int userId) {
this.groupId = groupId;
this.groupName = groupName;
this.roleId = roleId;
this.roleName = roleName;
this.userId = userId;
}
/**
* Gets the groupId value for this UserGroupMembership.
*
* @return groupId
*/
public int getGroupId() {
return groupId;
}
/**
* Sets the groupId value for this UserGroupMembership.
*
* @param groupId
*/
public void setGroupId(int groupId) {
this.groupId = groupId;
}
/**
* Gets the groupName value for this UserGroupMembership.
*
* @return groupName
*/
public java.lang.String getGroupName() {
return groupName;
}
/**
* Sets the groupName value for this UserGroupMembership.
*
* @param groupName
*/
public void setGroupName(java.lang.String groupName) {
this.groupName = groupName;
}
/**
* Gets the roleId value for this UserGroupMembership.
*
* @return roleId
*/
public int getRoleId() {
return roleId;
}
/**
* Sets the roleId value for this UserGroupMembership.
*
* @param roleId
*/
public void setRoleId(int roleId) {
this.roleId = roleId;
}
/**
* Gets the roleName value for this UserGroupMembership.
*
* @return roleName
*/
public java.lang.String getRoleName() {
return roleName;
}
/**
* Sets the roleName value for this UserGroupMembership.
*
* @param roleName
*/
public void setRoleName(java.lang.String roleName) {
this.roleName = roleName;
}
/**
* Gets the userId value for this UserGroupMembership.
*
* @return userId
*/
public int getUserId() {
return userId;
}
/**
* Sets the userId value for this UserGroupMembership.
*
* @param userId
*/
public void setUserId(int userId) {
this.userId = userId;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof UserGroupMembership)) return false;
UserGroupMembership other = (UserGroupMembership) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.groupId == other.getGroupId() &&
((this.groupName==null && other.getGroupName()==null) ||
(this.groupName!=null &&
this.groupName.equals(other.getGroupName()))) &&
this.roleId == other.getRoleId() &&
((this.roleName==null && other.getRoleName()==null) ||
(this.roleName!=null &&
this.roleName.equals(other.getRoleName()))) &&
this.userId == other.getUserId();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getGroupId();
if (getGroupName() != null) {
_hashCode += getGroupName().hashCode();
}
_hashCode += getRoleId();
if (getRoleName() != null) {
_hashCode += getRoleName().hashCode();
}
_hashCode += getUserId();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(UserGroupMembership.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://scc.segue.com", "UserGroupMembership"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("groupId");
elemField.setXmlName(new javax.xml.namespace.QName("", "groupId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("groupName");
elemField.setXmlName(new javax.xml.namespace.QName("", "groupName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("roleId");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("roleName");
elemField.setXmlName(new javax.xml.namespace.QName("", "roleName"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("userId");
elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}