Skip to content

Commit 40f916d

Browse files
author
Stefan Steinhauser
committed
style: Run spotlessApply
1 parent 223143a commit 40f916d

28 files changed

+1771
-1770
lines changed
Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,91 @@
1-
/*-
2-
* #%L
3-
* JSQLParser library
4-
* %%
5-
* Copyright (C) 2004 - 2022 JSQLParser
6-
* %%
7-
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8-
* #L%
9-
*/
10-
package net.sf.jsqlparser.statement;
11-
12-
import net.sf.jsqlparser.expression.StringValue;
13-
14-
public class CSVColumn {
15-
private Long startIndex;
16-
private Long endIndex;
17-
private StringValue format;
18-
private String delimit;
19-
20-
public CSVColumn(Long startIndex, Long endIndex) {
21-
this.startIndex = startIndex;
22-
this.endIndex = endIndex;
23-
}
24-
25-
public CSVColumn(Long index) {
26-
this(index, null);
27-
}
28-
29-
public Long getStartIndex() {
30-
return startIndex;
31-
}
32-
33-
public void setStartIndex(Long startIndex) {
34-
this.startIndex = startIndex;
35-
}
36-
37-
public Long getIndex() {
38-
return getStartIndex();
39-
}
40-
41-
public void setIndex(Long index) {
42-
setStartIndex(index);
43-
}
44-
45-
public Long getEndIndex() {
46-
return endIndex;
47-
}
48-
49-
public void setEndIndex(Long endIndex) {
50-
this.endIndex = endIndex;
51-
}
52-
53-
public StringValue getFormat() {
54-
return format;
55-
}
56-
57-
public void setFormat(StringValue format) {
58-
this.format = format;
59-
}
60-
61-
public String getDelimit() {
62-
return delimit;
63-
}
64-
65-
public void setDelimit(String delimit) {
66-
this.delimit = delimit;
67-
}
68-
69-
@Override
70-
public String toString() {
71-
StringBuilder sql = new StringBuilder();
72-
73-
sql.append(startIndex);
74-
if (endIndex != null) {
75-
sql.append(" .. ");
76-
sql.append(endIndex);
77-
} else if (format != null || delimit != null) {
78-
if (format != null) {
79-
sql.append(" FORMAT = ");
80-
sql.append(format);
81-
}
82-
83-
if (delimit != null) {
84-
sql.append(" DELIMIT = ");
85-
sql.append(delimit);
86-
}
87-
}
88-
89-
return sql.toString();
90-
}
91-
}
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2022 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
10+
package net.sf.jsqlparser.statement;
11+
12+
import net.sf.jsqlparser.expression.StringValue;
13+
14+
public class CSVColumn {
15+
private Long startIndex;
16+
private Long endIndex;
17+
private StringValue format;
18+
private String delimit;
19+
20+
public CSVColumn(Long startIndex, Long endIndex) {
21+
this.startIndex = startIndex;
22+
this.endIndex = endIndex;
23+
}
24+
25+
public CSVColumn(Long index) {
26+
this(index, null);
27+
}
28+
29+
public Long getStartIndex() {
30+
return startIndex;
31+
}
32+
33+
public void setStartIndex(Long startIndex) {
34+
this.startIndex = startIndex;
35+
}
36+
37+
public Long getIndex() {
38+
return getStartIndex();
39+
}
40+
41+
public void setIndex(Long index) {
42+
setStartIndex(index);
43+
}
44+
45+
public Long getEndIndex() {
46+
return endIndex;
47+
}
48+
49+
public void setEndIndex(Long endIndex) {
50+
this.endIndex = endIndex;
51+
}
52+
53+
public StringValue getFormat() {
54+
return format;
55+
}
56+
57+
public void setFormat(StringValue format) {
58+
this.format = format;
59+
}
60+
61+
public String getDelimit() {
62+
return delimit;
63+
}
64+
65+
public void setDelimit(String delimit) {
66+
this.delimit = delimit;
67+
}
68+
69+
@Override
70+
public String toString() {
71+
StringBuilder sql = new StringBuilder();
72+
73+
sql.append(startIndex);
74+
if (endIndex != null) {
75+
sql.append(" .. ");
76+
sql.append(endIndex);
77+
} else if (format != null || delimit != null) {
78+
if (format != null) {
79+
sql.append(" FORMAT = ");
80+
sql.append(format);
81+
}
82+
83+
if (delimit != null) {
84+
sql.append(" DELIMIT = ");
85+
sql.append(delimit);
86+
}
87+
}
88+
89+
return sql.toString();
90+
}
91+
}
Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
/*-
2-
* #%L
3-
* JSQLParser library
4-
* %%
5-
* Copyright (C) 2004 - 2022 JSQLParser
6-
* %%
7-
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8-
* #L%
9-
*/
10-
package net.sf.jsqlparser.statement;
11-
12-
import net.sf.jsqlparser.expression.StringValue;
13-
14-
public class CSVFileDestination implements ErrorDestination {
15-
private ConnectionDefinition connectionDefinition;
16-
private boolean local;
17-
private boolean secure;
18-
private StringValue file;
19-
20-
public ConnectionDefinition getConnectionDefinition() {
21-
return connectionDefinition;
22-
}
23-
24-
public void setConnectionDefinition(ConnectionDefinition connectionDefinition) {
25-
this.connectionDefinition = connectionDefinition;
26-
}
27-
28-
public boolean isLocal() {
29-
return local;
30-
}
31-
32-
public void setLocal(boolean local) {
33-
this.local = local;
34-
}
35-
36-
public boolean isSecure() {
37-
return secure;
38-
}
39-
40-
public void setSecure(boolean secure) {
41-
this.secure = secure;
42-
}
43-
44-
public StringValue getFile() {
45-
return file;
46-
}
47-
48-
public void setFile(StringValue file) {
49-
this.file = file;
50-
}
51-
52-
@Override
53-
public String toString() {
54-
StringBuilder sql = new StringBuilder();
55-
56-
if (local) {
57-
sql.append("LOCAL ");
58-
if (secure) {
59-
sql.append("SECURE ");
60-
}
61-
}
62-
63-
sql.append("CSV");
64-
65-
if (connectionDefinition != null) {
66-
sql.append(" ");
67-
sql.append(connectionDefinition);
68-
}
69-
70-
sql.append(" FILE ");
71-
sql.append(file);
72-
73-
return sql.toString();
74-
}
75-
}
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2022 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
10+
package net.sf.jsqlparser.statement;
11+
12+
import net.sf.jsqlparser.expression.StringValue;
13+
14+
public class CSVFileDestination implements ErrorDestination {
15+
private ConnectionDefinition connectionDefinition;
16+
private boolean local;
17+
private boolean secure;
18+
private StringValue file;
19+
20+
public ConnectionDefinition getConnectionDefinition() {
21+
return connectionDefinition;
22+
}
23+
24+
public void setConnectionDefinition(ConnectionDefinition connectionDefinition) {
25+
this.connectionDefinition = connectionDefinition;
26+
}
27+
28+
public boolean isLocal() {
29+
return local;
30+
}
31+
32+
public void setLocal(boolean local) {
33+
this.local = local;
34+
}
35+
36+
public boolean isSecure() {
37+
return secure;
38+
}
39+
40+
public void setSecure(boolean secure) {
41+
this.secure = secure;
42+
}
43+
44+
public StringValue getFile() {
45+
return file;
46+
}
47+
48+
public void setFile(StringValue file) {
49+
this.file = file;
50+
}
51+
52+
@Override
53+
public String toString() {
54+
StringBuilder sql = new StringBuilder();
55+
56+
if (local) {
57+
sql.append("LOCAL ");
58+
if (secure) {
59+
sql.append("SECURE ");
60+
}
61+
}
62+
63+
sql.append("CSV");
64+
65+
if (connectionDefinition != null) {
66+
sql.append(" ");
67+
sql.append(connectionDefinition);
68+
}
69+
70+
sql.append(" FILE ");
71+
sql.append(file);
72+
73+
return sql.toString();
74+
}
75+
}

0 commit comments

Comments
 (0)