01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.kuali.core.util;
18:
19: import java.io.Serializable;
20:
21: /**
22: * This class contains metadata about a column known to the persistence service.
23: *
24: *
25: */
26: public class ColumnMetadata implements Serializable {
27: private static final long serialVersionUID = 8489177684323721566L;
28: private String tableName;
29: private String columnName;
30: private Integer size;
31:
32: public String toString() {
33: return tableName + "." + columnName + "(" + size + ")";
34: }
35:
36: public ColumnMetadata() {
37: }
38:
39: public String getColumnName() {
40: return this .columnName;
41: }
42:
43: public void setColumnName(String columnName) {
44: this .columnName = columnName;
45: }
46:
47: public Integer getSize() {
48: return this .size;
49: }
50:
51: public void setSize(Integer size) {
52: this .size = size;
53: }
54:
55: public String getTableName() {
56: return this .tableName;
57: }
58:
59: public void setTableName(String tableName) {
60: this.tableName = tableName;
61: }
62: }
|