KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bluecubs > xinco > core > XincoCoreLog


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

7
8 /**
9  *Copyright 2004 blueCubs.com
10  *
11  *Licensed under the Apache License, Version 2.0 (the "License");
12  *you may not use this file except in compliance with the License.
13  *You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  *Unless required by applicable law or agreed to in writing, software
18  *distributed under the License is distributed on an "AS IS" BASIS,
19  *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  *See the License for the specific language governing permissions and
21  *limitations under the License.
22  *
23  *************************************************************
24  * This project supports the blueCubs vision of giving back
25  * to the community in exchange for free software!
26  * More information on: http://www.bluecubs.org
27  *************************************************************
28  *
29  * Name: XincoCoreLog
30  *
31  * Description: log
32  *
33  * Original Author: Alexander Manes
34  * Date: 2004
35  *
36  * Modifications:
37  *
38  * Who? When? What?
39  * - - -
40  *
41  *************************************************************
42  */

43
44 package com.bluecubs.xinco.core;
45
46 public class XincoCoreLog implements java.io.Serializable JavaDoc {
47     private int id;
48     private int op_code;
49     private java.util.Calendar JavaDoc op_datetime;
50     private java.lang.String JavaDoc op_description;
51     private com.bluecubs.xinco.core.XincoVersion version;
52     private int xinco_core_data_id;
53     private int xinco_core_user_id;
54
55     public XincoCoreLog() {
56     }
57
58     public int getId() {
59         return id;
60     }
61
62     public void setId(int id) {
63         this.id = id;
64     }
65
66     public int getOp_code() {
67         return op_code;
68     }
69
70     public void setOp_code(int op_code) {
71         this.op_code = op_code;
72     }
73
74     public java.util.Calendar JavaDoc getOp_datetime() {
75         return op_datetime;
76     }
77
78     public void setOp_datetime(java.util.Calendar JavaDoc op_datetime) {
79         this.op_datetime = op_datetime;
80     }
81
82     public java.lang.String JavaDoc getOp_description() {
83         return op_description;
84     }
85
86     public void setOp_description(java.lang.String JavaDoc op_description) {
87         this.op_description = op_description;
88     }
89
90     public com.bluecubs.xinco.core.XincoVersion getVersion() {
91         return version;
92     }
93
94     public void setVersion(com.bluecubs.xinco.core.XincoVersion version) {
95         this.version = version;
96     }
97
98     public int getXinco_core_data_id() {
99         return xinco_core_data_id;
100     }
101
102     public void setXinco_core_data_id(int xinco_core_data_id) {
103         this.xinco_core_data_id = xinco_core_data_id;
104     }
105
106     public int getXinco_core_user_id() {
107         return xinco_core_user_id;
108     }
109
110     public void setXinco_core_user_id(int xinco_core_user_id) {
111         this.xinco_core_user_id = xinco_core_user_id;
112     }
113
114     private java.lang.Object JavaDoc __equalsCalc = null;
115     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
116         if (!(obj instanceof XincoCoreLog)) return false;
117         XincoCoreLog other = (XincoCoreLog) obj;
118         if (obj == null) return false;
119         if (this == obj) return true;
120         if (__equalsCalc != null) {
121             return (__equalsCalc == obj);
122         }
123         __equalsCalc = obj;
124         boolean _equals;
125         _equals = true &&
126             this.id == other.getId() &&
127             this.op_code == other.getOp_code() &&
128             ((this.op_datetime==null && other.getOp_datetime()==null) ||
129              (this.op_datetime!=null &&
130               this.op_datetime.equals(other.getOp_datetime()))) &&
131             ((this.op_description==null && other.getOp_description()==null) ||
132              (this.op_description!=null &&
133               this.op_description.equals(other.getOp_description()))) &&
134             ((this.version==null && other.getVersion()==null) ||
135              (this.version!=null &&
136               this.version.equals(other.getVersion()))) &&
137             this.xinco_core_data_id == other.getXinco_core_data_id() &&
138             this.xinco_core_user_id == other.getXinco_core_user_id();
139         __equalsCalc = null;
140         return _equals;
141     }
142
143     private boolean __hashCodeCalc = false;
144     public synchronized int hashCode() {
145         if (__hashCodeCalc) {
146             return 0;
147         }
148         __hashCodeCalc = true;
149         int _hashCode = 1;
150         _hashCode += getId();
151         _hashCode += getOp_code();
152         if (getOp_datetime() != null) {
153             _hashCode += getOp_datetime().hashCode();
154         }
155         if (getOp_description() != null) {
156             _hashCode += getOp_description().hashCode();
157         }
158         if (getVersion() != null) {
159             _hashCode += getVersion().hashCode();
160         }
161         _hashCode += getXinco_core_data_id();
162         _hashCode += getXinco_core_user_id();
163         __hashCodeCalc = false;
164         return _hashCode;
165     }
166
167     // Type metadata
168
private static org.apache.axis.description.TypeDesc typeDesc =
169         new org.apache.axis.description.TypeDesc(XincoCoreLog.class);
170
171     static {
172         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoCoreLog"));
173         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
174         elemField.setFieldName("id");
175         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "id"));
176         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
177         typeDesc.addFieldDesc(elemField);
178         elemField = new org.apache.axis.description.ElementDesc();
179         elemField.setFieldName("op_code");
180         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "op_code"));
181         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
182         typeDesc.addFieldDesc(elemField);
183         elemField = new org.apache.axis.description.ElementDesc();
184         elemField.setFieldName("op_datetime");
185         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "op_datetime"));
186         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "dateTime"));
187         typeDesc.addFieldDesc(elemField);
188         elemField = new org.apache.axis.description.ElementDesc();
189         elemField.setFieldName("op_description");
190         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "op_description"));
191         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
192         typeDesc.addFieldDesc(elemField);
193         elemField = new org.apache.axis.description.ElementDesc();
194         elemField.setFieldName("version");
195         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "version"));
196         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://core.xinco.bluecubs.com", "XincoVersion"));
197         typeDesc.addFieldDesc(elemField);
198         elemField = new org.apache.axis.description.ElementDesc();
199         elemField.setFieldName("xinco_core_data_id");
200         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "xinco_core_data_id"));
201         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
202         typeDesc.addFieldDesc(elemField);
203         elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("xinco_core_user_id");
205         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "xinco_core_user_id"));
206         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
207         typeDesc.addFieldDesc(elemField);
208     }
209
210     /**
211      * Return type metadata object
212      */

213     public static org.apache.axis.description.TypeDesc getTypeDesc() {
214         return typeDesc;
215     }
216
217     /**
218      * Get Custom Serializer
219      */

220     public static org.apache.axis.encoding.Serializer getSerializer(
221            java.lang.String JavaDoc mechType,
222            java.lang.Class JavaDoc _javaType,
223            javax.xml.namespace.QName JavaDoc _xmlType) {
224         return
225           new org.apache.axis.encoding.ser.BeanSerializer(
226             _javaType, _xmlType, typeDesc);
227     }
228
229     /**
230      * Get Custom Deserializer
231      */

232     public static org.apache.axis.encoding.Deserializer getDeserializer(
233            java.lang.String JavaDoc mechType,
234            java.lang.Class JavaDoc _javaType,
235            javax.xml.namespace.QName JavaDoc _xmlType) {
236         return
237           new org.apache.axis.encoding.ser.BeanDeserializer(
238             _javaType, _xmlType, typeDesc);
239     }
240
241 }
242
Popular Tags