01: package net.sourceforge.squirrel_sql.fw.datasetviewer;
02:
03: /*
04: * Copyright (C) 2001 Colin Bell
05: * colbell@users.sourceforge.net
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this library; if not, write to the Free Software
19: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: */
21:
22: /**
23: * @author gwg
24: *
25: * This is the block of data needed to save/restore the import/export
26: * file name and command previously selected by the user for a given
27: * table column.
28: * The full table+column name is stored in this data object because
29: * it is needed when the application saves this info to a file
30: * for re-loading the next time the app starts.
31: */
32: public class CellImportExportInfo {
33:
34: /**
35: * The full name of the table and column for which these user inputs apply.
36: */
37: private String _tableColumnName;
38:
39: /**
40: * The file name selected by the user.
41: */
42: private String _fileName;
43:
44: /**
45: * The executable command entered by the user
46: */
47: private String _command;
48:
49: /**
50: * Null Ctor - used only by XMLBeanReader when loading data from file on startup.
51: */
52: public CellImportExportInfo() {
53: this ("", "", "");
54: }
55:
56: /**
57: * Normal Constructor
58: */
59: CellImportExportInfo(String tableColumnName, String fileName,
60: String command) {
61: _tableColumnName = tableColumnName;
62: _fileName = fileName;
63: _command = command;
64: }
65:
66: /*
67: * Setters and Getters for each field.
68: */
69:
70: public String getTableColumnName() {
71: return _tableColumnName;
72: }
73:
74: public void setTableColumnName(String tableColumnName) {
75: _tableColumnName = tableColumnName;
76: }
77:
78: public String getFileName() {
79: return _fileName;
80: }
81:
82: public void setFileName(String fileName) {
83: _fileName = fileName;
84: }
85:
86: public String getCommand() {
87: return _command;
88: }
89:
90: public void setCommand(String command) {
91: _command = command;
92: }
93: }
|