01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: /*
21: *
22: * Copyright 2005 Sun Microsystems, Inc.
23: *
24: * Licensed under the Apache License, Version 2.0 (the "License");
25: * you may not use this file except in compliance with the License.
26: * You may obtain a copy of the License at
27: *
28: * http://www.apache.org/licenses/LICENSE-2.0
29: *
30: * Unless required by applicable law or agreed to in writing, software
31: * distributed under the License is distributed on an "AS IS" BASIS,
32: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33: * See the License for the specific language governing permissions and
34: * limitations under the License.
35: *
36: */
37: package org.netbeans.modules.jdbcwizard.builder.dbmodel.impl;
38:
39: import java.util.ArrayList;
40:
41: public class PreparedStmtResultSetDescriptor extends DBObjectImpl {
42: private int numColumns = 0;
43:
44: private ArrayList columns = null;
45:
46: /**
47: * * constructor
48: */
49: public PreparedStmtResultSetDescriptor() {
50: this .columns = new ArrayList();
51: }
52:
53: /**
54: * getter for numColumns; *
55: *
56: * @return numColumns;
57: */
58: public int getNumColumns() {
59: return this .numColumns;
60: }
61:
62: /**
63: * setter for numColumns; *
64: *
65: * @param numColumns number of columns;
66: */
67: public void setNumColumns(final int numColumns) {
68: this .numColumns = numColumns;
69: }
70:
71: /**
72: * getter for columns;
73: *
74: * @return columns;
75: */
76: public ArrayList getColumns() {
77: return this .columns;
78: }
79:
80: /**
81: * setter for columns;
82: *
83: * @param columns list of <code>ColumnDescriptor</code> * objects;
84: */
85: public void setColumns(final ArrayList columns) {
86: this.columns = columns;
87: }
88: }
|