01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.springframework.jdbc.core.metadata;
18:
19: /**
20: * Holder of metadata for a specific parameter that is used for table processing.
21: *
22: * @author Thomas Risberg
23: * @since 2.5
24: */
25: public class TableParameterMetaData {
26:
27: private final String parameterName;
28:
29: private final int sqlType;
30:
31: private final boolean nullable;
32:
33: /**
34: * Constructor taking all the properties.
35: */
36: public TableParameterMetaData(String columnName, int sqlType,
37: boolean nullable) {
38: this .parameterName = columnName;
39: this .sqlType = sqlType;
40: this .nullable = nullable;
41: }
42:
43: /**
44: * Get the parameter name.
45: */
46: public String getParameterName() {
47: return this .parameterName;
48: }
49:
50: /**
51: * Get the parameter SQL type.
52: */
53: public int getSqlType() {
54: return this .sqlType;
55: }
56:
57: /**
58: * Get whether the parameter/column is nullable.
59: */
60: public boolean isNullable() {
61: return this.nullable;
62: }
63:
64: }
|