View Javadoc

1   /*   Copyright (C) 2004 Finalist IT Group
2    *
3    *   This file is part of JAG - the Java J2EE Application Generator
4    *
5    *   JAG is free software; you can redistribute it and/or modify
6    *   it under the terms of the GNU General Public License as published by
7    *   the Free Software Foundation; either version 2 of the License, or
8    *   (at your option) any later version.
9    *   JAG is distributed in the hope that it will be useful,
10   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   *   GNU General Public License for more details.
13   *   You should have received a copy of the GNU General Public License
14   *   along with JAG; if not, write to the Free Software
15   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16   */
17  
18  /*
19   * ColumnBean.java
20   *
21   * Created on September 16, 2002, 10:31 AM
22   */
23  
24  package com.finalist.tools.database;
25  
26  import java.beans.*;
27  
28  /***
29   *
30   * @author  hillebrand
31   */
32  public class ColumnBean extends Object implements java.io.Serializable {
33  
34     /*** Holds value of property name. */
35     private String name;
36  
37     /*** Holds value of property sqlType. */
38     private String sqlType;
39  
40     /*** Holds value of property scale. */
41     private int scale;
42  
43     /*** Holds value of property precision. */
44     private int precision;
45  
46     /*** Holds value of property javaType. */
47     private String javaType;
48  
49  
50     /*** Creates new ColumnBean */
51     public ColumnBean() {
52     }
53  
54  
55     /*** Creates new ColumnBean */
56     public ColumnBean(String name, String javaType) {
57        this.name = name;
58        this.javaType = javaType;
59     }
60  
61  
62     /*** Getter for property nam.
63      * @return Value of property nam.
64      *
65      */
66     public String getName() {
67        return this.name;
68     }
69  
70  
71     /*** Setter for property nam.
72      * @param nam New value of property nam.
73      *
74      */
75     public void setName(String name) {
76        this.name = name;
77     }
78  
79  
80     /*** Getter for property type.
81      * @return Value of property type.
82      *
83      */
84     public String getSqlType() {
85        return this.sqlType;
86     }
87  
88  
89     /*** Setter for property type.
90      * @param type New value of property type.
91      *
92      */
93     public void setSqlType(String sqlType) {
94        this.sqlType = sqlType;
95     }
96  
97  
98     /*** Getter for property scale.
99      * @return Value of property scale.
100     *
101     */
102    public int getScale() {
103       return this.scale;
104    }
105 
106 
107    /*** Setter for property scale.
108     * @param scale New value of property scale.
109     *
110     */
111    public void setScale(int scale) {
112       this.scale = scale;
113    }
114 
115 
116    /*** Getter for property precision.
117     * @return Value of property precision.
118     *
119     */
120    public int getPrecision() {
121       return this.precision;
122    }
123 
124 
125    /*** Setter for property precision.
126     * @param precision New value of property precision.
127     *
128     */
129    public void setPrecision(int precision) {
130       this.precision = precision;
131    }
132 
133 
134    /*** Getter for property javaType.
135     * @return Value of property javaType.
136     *
137     */
138    public String getJavaType() {
139       return this.javaType;
140    }
141 
142 
143    /*** Setter for property javaType.
144     * @param javaType New value of property javaType.
145     *
146     */
147    public void setJavaType(String javaType) {
148       this.javaType = javaType;
149    }
150 
151 }