forked from JSQLParser/JSqlParser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWithFunctionParameter.java
More file actions
59 lines (47 loc) · 1.2 KB
/
WithFunctionParameter.java
File metadata and controls
59 lines (47 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*-
* #%L
* JSQLParser library
* %%
* Copyright (C) 2004 - 2025 JSQLParser
* %%
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
* #L%
*/
package net.sf.jsqlparser.statement.select;
import java.io.Serializable;
public class WithFunctionParameter implements Serializable {
private String name;
private String type; // e.g., INT
public WithFunctionParameter() {}
public WithFunctionParameter(String name, String type) {
this.name = name;
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public WithFunctionParameter withName(String name) {
this.name = name;
return this;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public WithFunctionParameter withType(String type) {
this.type = type;
return this;
}
public StringBuilder appendTo(StringBuilder builder) {
return builder.append(name).append(" ").append(type);
}
@Override
public String toString() {
return appendTo(new StringBuilder()).toString();
}
}