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.oracle.dml;
19
20 import lombok.Setter;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.predicate.LockSegment;
22 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.ModelSegment;
23 import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.WithSegment;
24 import org.apache.shardingsphere.sql.parser.sql.common.statement.dml.SelectStatement;
25 import org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.OracleStatement;
26
27 import java.util.Optional;
28
29
30
31
32 @Setter
33 public final class OracleSelectStatement extends SelectStatement implements OracleStatement {
34
35 private LockSegment lock;
36
37 private ModelSegment modelSegment;
38
39 private WithSegment withSegment;
40
41
42
43
44
45
46 public Optional<LockSegment> getLock() {
47 return Optional.ofNullable(lock);
48 }
49
50
51
52
53
54
55 public Optional<ModelSegment> getModelSegment() {
56 return Optional.ofNullable(modelSegment);
57 }
58
59
60
61
62
63
64 public Optional<WithSegment> getWithSegment() {
65 return Optional.ofNullable(withSegment);
66 }
67 }