1 package liquibase.statement.core;
2
3 import liquibase.statement.AbstractSqlStatement;
4
5 import java.math.BigInteger;
6
7 public class AlterSequenceStatement extends AbstractSqlStatement {
8
9 private String schemaName;
10 private String sequenceName;
11 private BigInteger incrementBy;
12 private BigInteger maxValue;
13 private BigInteger minValue;
14 private Boolean ordered;
15
16 public AlterSequenceStatement(String schemaName, String sequenceName) {
17 this.schemaName = schemaName;
18 this.sequenceName = sequenceName;
19 }
20
21 @Override
22 public boolean skipOnUnsupported() {
23 return true;
24 }
25
26 public String getSchemaName() {
27 return schemaName;
28 }
29
30 public String getSequenceName() {
31 return sequenceName;
32 }
33
34 public BigInteger getIncrementBy() {
35 return incrementBy;
36 }
37
38 public AlterSequenceStatement setIncrementBy(BigInteger incrementBy) {
39 this.incrementBy = incrementBy;
40 return this;
41 }
42
43 public BigInteger getMaxValue() {
44 return maxValue;
45 }
46
47 public AlterSequenceStatement setMaxValue(BigInteger maxValue) {
48 this.maxValue = maxValue;
49 return this;
50 }
51
52 public BigInteger getMinValue() {
53 return minValue;
54 }
55
56 public AlterSequenceStatement setMinValue(BigInteger minValue) {
57 this.minValue = minValue;
58 return this;
59 }
60
61 public Boolean getOrdered() {
62 return ordered;
63 }
64
65 public AlterSequenceStatement setOrdered(Boolean ordered) {
66 this.ordered = ordered;
67 return this;
68 }
69 }