KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > j2ee > blueprints > admin > webservice > AdminService_Order


1 /**
2  * AdminService_Order.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package com.sun.j2ee.blueprints.admin.webservice;
9
10 public class AdminService_Order implements java.io.Serializable {
11     private java.lang.String orderDate;
12     private java.lang.String orderId;
13     private java.lang.String userId;
14     private java.lang.String orderStatus;
15     private float orderValue;
16
17     public AdminService_Order() {
18     }
19
20     public java.lang.String getOrderDate() {
21         return orderDate;
22     }
23
24     public void setOrderDate(java.lang.String orderDate) {
25         this.orderDate = orderDate;
26     }
27
28     public java.lang.String getOrderId() {
29         return orderId;
30     }
31
32     public void setOrderId(java.lang.String orderId) {
33         this.orderId = orderId;
34     }
35
36     public java.lang.String getUserId() {
37         return userId;
38     }
39
40     public void setUserId(java.lang.String userId) {
41         this.userId = userId;
42     }
43
44     public java.lang.String getOrderStatus() {
45         return orderStatus;
46     }
47
48     public void setOrderStatus(java.lang.String orderStatus) {
49         this.orderStatus = orderStatus;
50     }
51
52     public float getOrderValue() {
53         return orderValue;
54     }
55
56     public void setOrderValue(float orderValue) {
57         this.orderValue = orderValue;
58     }
59
60     private java.lang.Object __equalsCalc = null;
61     public synchronized boolean equals(java.lang.Object obj) {
62         if (!(obj instanceof AdminService_Order)) return false;
63         AdminService_Order other = (AdminService_Order) obj;
64         if (obj == null) return false;
65         if (this == obj) return true;
66         if (__equalsCalc != null) {
67             return (__equalsCalc == obj);
68         }
69         __equalsCalc = obj;
70         boolean _equals;
71         _equals = true &&
72             ((this.orderDate==null && other.getOrderDate()==null) ||
73              (this.orderDate!=null &&
74               this.orderDate.equals(other.getOrderDate()))) &&
75             ((this.orderId==null && other.getOrderId()==null) ||
76              (this.orderId!=null &&
77               this.orderId.equals(other.getOrderId()))) &&
78             ((this.userId==null && other.getUserId()==null) ||
79              (this.userId!=null &&
80               this.userId.equals(other.getUserId()))) &&
81             ((this.orderStatus==null && other.getOrderStatus()==null) ||
82              (this.orderStatus!=null &&
83               this.orderStatus.equals(other.getOrderStatus()))) &&
84             this.orderValue == other.getOrderValue();
85         __equalsCalc = null;
86         return _equals;
87     }
88
89     private boolean __hashCodeCalc = false;
90     public synchronized int hashCode() {
91         if (__hashCodeCalc) {
92             return 0;
93         }
94         __hashCodeCalc = true;
95         int _hashCode = 1;
96         if (getOrderDate() != null) {
97             _hashCode += getOrderDate().hashCode();
98         }
99         if (getOrderId() != null) {
100             _hashCode += getOrderId().hashCode();
101         }
102         if (getUserId() != null) {
103             _hashCode += getUserId().hashCode();
104         }
105         if (getOrderStatus() != null) {
106             _hashCode += getOrderStatus().hashCode();
107         }
108         _hashCode += new Float(getOrderValue()).hashCode();
109         __hashCodeCalc = false;
110         return _hashCode;
111     }
112
113     // Type metadata
114
private static org.apache.axis.description.TypeDesc typeDesc =
115         new org.apache.axis.description.TypeDesc(AdminService_Order.class);
116
117     static {
118         typeDesc.setXmlType(new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_Order"));
119         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
120         elemField.setFieldName("orderDate");
121         elemField.setXmlName(new javax.xml.namespace.QName("", "orderDate"));
122         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
123         typeDesc.addFieldDesc(elemField);
124         elemField = new org.apache.axis.description.ElementDesc();
125         elemField.setFieldName("orderId");
126         elemField.setXmlName(new javax.xml.namespace.QName("", "orderId"));
127         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
128         typeDesc.addFieldDesc(elemField);
129         elemField = new org.apache.axis.description.ElementDesc();
130         elemField.setFieldName("userId");
131         elemField.setXmlName(new javax.xml.namespace.QName("", "userId"));
132         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
133         typeDesc.addFieldDesc(elemField);
134         elemField = new org.apache.axis.description.ElementDesc();
135         elemField.setFieldName("orderStatus");
136         elemField.setXmlName(new javax.xml.namespace.QName("", "orderStatus"));
137         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
138         typeDesc.addFieldDesc(elemField);
139         elemField = new org.apache.axis.description.ElementDesc();
140         elemField.setFieldName("orderValue");
141         elemField.setXmlName(new javax.xml.namespace.QName("", "orderValue"));
142         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float"));
143         typeDesc.addFieldDesc(elemField);
144     }
145
146     /**
147      * Return type metadata object
148      */

149     public static org.apache.axis.description.TypeDesc getTypeDesc() {
150         return typeDesc;
151     }
152
153     /**
154      * Get Custom Serializer
155      */

156     public static org.apache.axis.encoding.Serializer getSerializer(
157            java.lang.String mechType,
158            java.lang.Class _javaType,
159            javax.xml.namespace.QName _xmlType) {
160         return
161           new org.apache.axis.encoding.ser.BeanSerializer(
162             _javaType, _xmlType, typeDesc);
163     }
164
165     /**
166      * Get Custom Deserializer
167      */

168     public static org.apache.axis.encoding.Deserializer getDeserializer(
169            java.lang.String mechType,
170            java.lang.Class _javaType,
171            javax.xml.namespace.QName _xmlType) {
172         return
173           new org.apache.axis.encoding.ser.BeanDeserializer(
174             _javaType, _xmlType, typeDesc);
175     }
176
177 }
178
Popular Tags