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.mysql.dml;
19
20 import lombok.Setter;
21 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.order.OrderBySegment;
22 import org.apache.shardingsphere.sql.parser.sql.common.segment.dml.pagination.limit.LimitSegment;
23 import org.apache.shardingsphere.sql.parser.sql.common.statement.dml.DeleteStatement;
24 import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.MySQLStatement;
25
26 import java.util.Optional;
27
28
29
30
31 @Setter
32 public final class MySQLDeleteStatement extends DeleteStatement implements MySQLStatement {
33
34 private OrderBySegment orderBy;
35
36 private LimitSegment limit;
37
38
39
40
41
42
43 public Optional<OrderBySegment> getOrderBy() {
44 return Optional.ofNullable(orderBy);
45 }
46
47
48
49
50
51
52 public Optional<LimitSegment> getLimit() {
53 return Optional.ofNullable(limit);
54 }
55 }