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 | 41 | public AlterSequenceStatement(String schemaName, String sequenceName) { |
17 | 41 | this.schemaName = schemaName; |
18 | 41 | this.sequenceName = sequenceName; |
19 | 41 | } |
20 | |
|
21 | |
@Override |
22 | |
public boolean skipOnUnsupported() { |
23 | 0 | return true; |
24 | |
} |
25 | |
|
26 | |
public String getSchemaName() { |
27 | 1 | return schemaName; |
28 | |
} |
29 | |
|
30 | |
public String getSequenceName() { |
31 | 10 | return sequenceName; |
32 | |
} |
33 | |
|
34 | |
public BigInteger getIncrementBy() { |
35 | 10 | return incrementBy; |
36 | |
} |
37 | |
|
38 | |
public AlterSequenceStatement setIncrementBy(BigInteger incrementBy) { |
39 | 40 | this.incrementBy = incrementBy; |
40 | 40 | return this; |
41 | |
} |
42 | |
|
43 | |
public BigInteger getMaxValue() { |
44 | 10 | return maxValue; |
45 | |
} |
46 | |
|
47 | |
public AlterSequenceStatement setMaxValue(BigInteger maxValue) { |
48 | 40 | this.maxValue = maxValue; |
49 | 40 | return this; |
50 | |
} |
51 | |
|
52 | |
public BigInteger getMinValue() { |
53 | 10 | return minValue; |
54 | |
} |
55 | |
|
56 | |
public AlterSequenceStatement setMinValue(BigInteger minValue) { |
57 | 40 | this.minValue = minValue; |
58 | 40 | return this; |
59 | |
} |
60 | |
|
61 | |
public Boolean getOrdered() { |
62 | 10 | return ordered; |
63 | |
} |
64 | |
|
65 | |
public AlterSequenceStatement setOrdered(Boolean ordered) { |
66 | 40 | this.ordered = ordered; |
67 | 40 | return this; |
68 | |
} |
69 | |
} |