001: /**
002: * AdminService_Order.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package com.sun.j2ee.blueprints.admin.webservice;
007:
008: public class AdminService_Order implements java.io.Serializable {
009: private java.lang.String orderDate;
010: private java.lang.String orderId;
011: private java.lang.String userId;
012: private java.lang.String orderStatus;
013: private float orderValue;
014:
015: public AdminService_Order() {
016: }
017:
018: public java.lang.String getOrderDate() {
019: return orderDate;
020: }
021:
022: public void setOrderDate(java.lang.String orderDate) {
023: this .orderDate = orderDate;
024: }
025:
026: public java.lang.String getOrderId() {
027: return orderId;
028: }
029:
030: public void setOrderId(java.lang.String orderId) {
031: this .orderId = orderId;
032: }
033:
034: public java.lang.String getUserId() {
035: return userId;
036: }
037:
038: public void setUserId(java.lang.String userId) {
039: this .userId = userId;
040: }
041:
042: public java.lang.String getOrderStatus() {
043: return orderStatus;
044: }
045:
046: public void setOrderStatus(java.lang.String orderStatus) {
047: this .orderStatus = orderStatus;
048: }
049:
050: public float getOrderValue() {
051: return orderValue;
052: }
053:
054: public void setOrderValue(float orderValue) {
055: this .orderValue = orderValue;
056: }
057:
058: private java.lang.Object __equalsCalc = null;
059:
060: public synchronized boolean equals(java.lang.Object obj) {
061: if (!(obj instanceof AdminService_Order))
062: return false;
063: AdminService_Order other = (AdminService_Order) obj;
064: if (obj == null)
065: return false;
066: if (this == obj)
067: return true;
068: if (__equalsCalc != null) {
069: return (__equalsCalc == obj);
070: }
071: __equalsCalc = obj;
072: boolean _equals;
073: _equals = true
074: && ((this .orderDate == null && other.getOrderDate() == null) || (this .orderDate != null && this .orderDate
075: .equals(other.getOrderDate())))
076: && ((this .orderId == null && other.getOrderId() == null) || (this .orderId != null && this .orderId
077: .equals(other.getOrderId())))
078: && ((this .userId == null && other.getUserId() == null) || (this .userId != null && this .userId
079: .equals(other.getUserId())))
080: && ((this .orderStatus == null && other.getOrderStatus() == null) || (this .orderStatus != null && this .orderStatus
081: .equals(other.getOrderStatus())))
082: && this .orderValue == other.getOrderValue();
083: __equalsCalc = null;
084: return _equals;
085: }
086:
087: private boolean __hashCodeCalc = false;
088:
089: public synchronized int hashCode() {
090: if (__hashCodeCalc) {
091: return 0;
092: }
093: __hashCodeCalc = true;
094: int _hashCode = 1;
095: if (getOrderDate() != null) {
096: _hashCode += getOrderDate().hashCode();
097: }
098: if (getOrderId() != null) {
099: _hashCode += getOrderId().hashCode();
100: }
101: if (getUserId() != null) {
102: _hashCode += getUserId().hashCode();
103: }
104: if (getOrderStatus() != null) {
105: _hashCode += getOrderStatus().hashCode();
106: }
107: _hashCode += new Float(getOrderValue()).hashCode();
108: __hashCodeCalc = false;
109: return _hashCode;
110: }
111:
112: // Type metadata
113: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
114: AdminService_Order.class);
115:
116: static {
117: typeDesc.setXmlType(new javax.xml.namespace.QName(
118: "webservice.admin.blueprints.j2ee.sun.com",
119: "AdminService_Order"));
120: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
121: elemField.setFieldName("orderDate");
122: elemField.setXmlName(new javax.xml.namespace.QName("",
123: "orderDate"));
124: elemField.setXmlType(new javax.xml.namespace.QName(
125: "http://www.w3.org/2001/XMLSchema", "string"));
126: typeDesc.addFieldDesc(elemField);
127: elemField = new org.apache.axis.description.ElementDesc();
128: elemField.setFieldName("orderId");
129: elemField.setXmlName(new javax.xml.namespace.QName("",
130: "orderId"));
131: elemField.setXmlType(new javax.xml.namespace.QName(
132: "http://www.w3.org/2001/XMLSchema", "string"));
133: typeDesc.addFieldDesc(elemField);
134: elemField = new org.apache.axis.description.ElementDesc();
135: elemField.setFieldName("userId");
136: elemField
137: .setXmlName(new javax.xml.namespace.QName("", "userId"));
138: elemField.setXmlType(new javax.xml.namespace.QName(
139: "http://www.w3.org/2001/XMLSchema", "string"));
140: typeDesc.addFieldDesc(elemField);
141: elemField = new org.apache.axis.description.ElementDesc();
142: elemField.setFieldName("orderStatus");
143: elemField.setXmlName(new javax.xml.namespace.QName("",
144: "orderStatus"));
145: elemField.setXmlType(new javax.xml.namespace.QName(
146: "http://www.w3.org/2001/XMLSchema", "string"));
147: typeDesc.addFieldDesc(elemField);
148: elemField = new org.apache.axis.description.ElementDesc();
149: elemField.setFieldName("orderValue");
150: elemField.setXmlName(new javax.xml.namespace.QName("",
151: "orderValue"));
152: elemField.setXmlType(new javax.xml.namespace.QName(
153: "http://www.w3.org/2001/XMLSchema", "float"));
154: typeDesc.addFieldDesc(elemField);
155: }
156:
157: /**
158: * Return type metadata object
159: */
160: public static org.apache.axis.description.TypeDesc getTypeDesc() {
161: return typeDesc;
162: }
163:
164: /**
165: * Get Custom Serializer
166: */
167: public static org.apache.axis.encoding.Serializer getSerializer(
168: java.lang.String mechType, java.lang.Class _javaType,
169: javax.xml.namespace.QName _xmlType) {
170: return new org.apache.axis.encoding.ser.BeanSerializer(
171: _javaType, _xmlType, typeDesc);
172: }
173:
174: /**
175: * Get Custom Deserializer
176: */
177: public static org.apache.axis.encoding.Deserializer getDeserializer(
178: java.lang.String mechType, java.lang.Class _javaType,
179: javax.xml.namespace.QName _xmlType) {
180: return new org.apache.axis.encoding.ser.BeanDeserializer(
181: _javaType, _xmlType, typeDesc);
182: }
183:
184: }
|