01: /*
02: * DefaultImportOptions.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db.importer;
13:
14: import workbench.gui.dialogs.dataimport.ImportOptions;
15: import workbench.resource.Settings;
16:
17: /**
18: * @author support@sql-workbench.net
19: */
20: public class DefaultImportOptions implements ImportOptions {
21:
22: public DefaultImportOptions() {
23: }
24:
25: public String getEncoding() {
26: return "UTF-8";
27: }
28:
29: public String getDateFormat() {
30: return Settings.getInstance().getDefaultDateFormat();
31: }
32:
33: public String getTimestampFormat() {
34: return Settings.getInstance().getDefaultTimestampFormat();
35: }
36:
37: public void setEncoding(String enc) {
38: }
39:
40: public void setDateFormat(String format) {
41: }
42:
43: public void setTimestampFormat(String format) {
44: }
45:
46: public void setMode(String mode) {
47: }
48:
49: public String getMode() {
50: return "insert";
51: }
52: }
|