1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */ 
17  package org.apache.commons.betwixt;
18  
19  /** <p>A simple bean that demonstrates conversions of primitives and objects.</p>
20    *
21    * @author Robert Burrell Donkin
22    * @version $Revision: 438373 $
23    */
24  public class DeltaBean {
25  
26      private java.sql.Date sqlDate;
27      private java.sql.Time sqlTime;
28      private java.sql.Timestamp sqlTimestamp;
29      private java.util.Date utilDate;
30      private String name;
31      private Float objFloat;
32      private float primitiveFloat;
33      
34      public DeltaBean() {
35      }
36      
37      public DeltaBean(
38                      java.sql.Date sqlDate, 
39                      java.sql.Time sqlTime, 
40                      java.sql.Timestamp sqlTimestamp, 
41                      java.util.Date utilDate,
42                      String name,
43                      Float objFloat,
44                      float primitiveFloat) {
45          setSqlDate(sqlDate);
46          setSqlTime(sqlTime);
47          setSqlTimestamp(sqlTimestamp);
48          setUtilDate(utilDate);
49          setName(name);
50          setObjFloat(objFloat);
51          setPrimitiveFloat(primitiveFloat);
52      }
53      
54      public java.sql.Date getSqlDate() {
55          return sqlDate;
56      }
57      
58      public void setSqlDate(java.sql.Date sqlDate) {
59          this.sqlDate = sqlDate;
60      }
61      
62      public java.sql.Time getSqlTime() {
63          return sqlTime;
64      }
65      
66      public void setSqlTime(java.sql.Time sqlTime) {
67          this.sqlTime = sqlTime;
68      }
69      
70      public java.sql.Timestamp getSqlTimestamp() {
71          return sqlTimestamp;
72      }
73      
74      public void setSqlTimestamp(java.sql.Timestamp sqlTimestamp) {
75          this.sqlTimestamp = sqlTimestamp;
76      }
77      
78      public java.util.Date getUtilDate() {
79          return utilDate;
80      }
81      
82      public void setUtilDate(java.util.Date utilDate) {
83          this.utilDate = utilDate;
84      }
85      
86      public String getName() {
87          return name;
88      }
89      
90      public void setName(String name) {
91          this.name = name;
92      }
93      
94      public Float getObjFloat() {
95          return objFloat;
96      }	
97      
98      public void setObjFloat(Float objFloat) {
99          this.objFloat = objFloat;
100     }
101     
102     public float getPrimitiveFloat() {
103         return primitiveFloat;
104     }
105     
106     public void setPrimitiveFloat(float primitiveFloat) {
107         this.primitiveFloat = primitiveFloat;
108     }
109 }