001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.commons.betwixt;
018:
019: /** <p>A simple bean that demonstrates conversions of primitives and objects.</p>
020: *
021: * @author Robert Burrell Donkin
022: * @version $Revision: 438373 $
023: */
024: public class DeltaBean {
025:
026: private java.sql.Date sqlDate;
027: private java.sql.Time sqlTime;
028: private java.sql.Timestamp sqlTimestamp;
029: private java.util.Date utilDate;
030: private String name;
031: private Float objFloat;
032: private float primitiveFloat;
033:
034: public DeltaBean() {
035: }
036:
037: public DeltaBean(java.sql.Date sqlDate, java.sql.Time sqlTime,
038: java.sql.Timestamp sqlTimestamp, java.util.Date utilDate,
039: String name, Float objFloat, float primitiveFloat) {
040: setSqlDate(sqlDate);
041: setSqlTime(sqlTime);
042: setSqlTimestamp(sqlTimestamp);
043: setUtilDate(utilDate);
044: setName(name);
045: setObjFloat(objFloat);
046: setPrimitiveFloat(primitiveFloat);
047: }
048:
049: public java.sql.Date getSqlDate() {
050: return sqlDate;
051: }
052:
053: public void setSqlDate(java.sql.Date sqlDate) {
054: this .sqlDate = sqlDate;
055: }
056:
057: public java.sql.Time getSqlTime() {
058: return sqlTime;
059: }
060:
061: public void setSqlTime(java.sql.Time sqlTime) {
062: this .sqlTime = sqlTime;
063: }
064:
065: public java.sql.Timestamp getSqlTimestamp() {
066: return sqlTimestamp;
067: }
068:
069: public void setSqlTimestamp(java.sql.Timestamp sqlTimestamp) {
070: this .sqlTimestamp = sqlTimestamp;
071: }
072:
073: public java.util.Date getUtilDate() {
074: return utilDate;
075: }
076:
077: public void setUtilDate(java.util.Date utilDate) {
078: this .utilDate = utilDate;
079: }
080:
081: public String getName() {
082: return name;
083: }
084:
085: public void setName(String name) {
086: this .name = name;
087: }
088:
089: public Float getObjFloat() {
090: return objFloat;
091: }
092:
093: public void setObjFloat(Float objFloat) {
094: this .objFloat = objFloat;
095: }
096:
097: public float getPrimitiveFloat() {
098: return primitiveFloat;
099: }
100:
101: public void setPrimitiveFloat(float primitiveFloat) {
102: this.primitiveFloat = primitiveFloat;
103: }
104: }
|