1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shardingsphere.sql.parser.sql.dialect.statement.sqlserver.dml;
19
20 import lombok.Setter;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.OutputSegment;
22 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.WithSegment;
23 import org.apache.shardingsphere.sql.parser.sql.common.statement.dml.UpdateStatement;
24 import org.apache.shardingsphere.sql.parser.sql.dialect.segment.sqlserver.hint.OptionHintSegment;
25 import org.apache.shardingsphere.sql.parser.sql.dialect.segment.sqlserver.hint.WithTableHintSegment;
26 import org.apache.shardingsphere.sql.parser.sql.dialect.statement.sqlserver.SQLServerStatement;
27
28 import java.util.Optional;
29
30
31
32
33 @Setter
34 public final class SQLServerUpdateStatement extends UpdateStatement implements SQLServerStatement {
35
36 private WithSegment withSegment;
37
38 private WithTableHintSegment withTableHintSegment;
39
40 private OptionHintSegment optionHintSegment;
41
42 private OutputSegment outputSegment;
43
44
45
46
47
48
49 public Optional<WithSegment> getWithSegment() {
50 return Optional.ofNullable(withSegment);
51 }
52
53
54
55
56
57
58 public Optional<WithTableHintSegment> getWithTableHintSegment() {
59 return Optional.ofNullable(withTableHintSegment);
60 }
61
62
63
64
65
66
67 public Optional<OptionHintSegment> getOptionHintSegment() {
68 return Optional.ofNullable(optionHintSegment);
69 }
70
71
72
73
74
75
76 public Optional<OutputSegment> getOutputSegment() {
77 return Optional.ofNullable(outputSegment);
78 }
79 }