01: package net.sourceforge.squirrel_sql.plugins.dataimport.importer.csv;
02:
03: /*
04: * Copyright (C) 2007 Thorsten Mürell
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: */
20: import java.io.Serializable;
21: import java.nio.charset.Charset;
22:
23: /**
24: * This class holds the configuration variables for the CVS importer.
25: *
26: * @author Thorsten Mürell
27: */
28: public class CSVSettingsBean implements Cloneable, Serializable {
29: private static final long serialVersionUID = 6633824961073722466L;
30:
31: private char seperator = ';';
32:
33: private Charset importCharset = Charset.defaultCharset();
34:
35: private String dateFormat = "yyyy-MM-dd HH:mm:ss";
36:
37: /**
38: * @return the importCharset
39: */
40: public Charset getImportCharset() {
41: return importCharset;
42: }
43:
44: /**
45: * @param importCharset the importCharset to set
46: */
47: public void setImportCharset(Charset importCharset) {
48: this .importCharset = importCharset;
49: }
50:
51: /**
52: * @return the seperator
53: */
54: public char getSeperator() {
55: return seperator;
56: }
57:
58: /**
59: * @param seperator the seperator to set
60: */
61: public void setSeperator(char seperator) {
62: this .seperator = seperator;
63: }
64:
65: /**
66: * @return the dateFormat
67: */
68: public String getDateFormat() {
69: return dateFormat;
70: }
71:
72: /**
73: * @param dateFormat the dateFormat to set
74: */
75: public void setDateFormat(String dateFormat) {
76: this.dateFormat = dateFormat;
77: }
78:
79: }
|