1 | private class CreateIndexSqlExtractor implements IDialectSqlExtractor {↵ | | 1 | private class AlterSequenceSqlExtractor implements IDialectSqlExtractor {↵
|
|
| | | 2 | ↵
|
| | | 3 | ↵
|
2 | private String indexName;↵ | | 4 | private String sequenceName;↵
|
3 | private String tableName;↵ | | 5 | private String increment;↵
|
4 | private String accessMethod;↵ | | 6 | private String minimum;↵
|
5 | private String[] columns;↵ | | 7 | private String maximum;↵
|
6 | private boolean unique;↵ | | 8 | private String restart;↵
|
7 | private String tablespace;↵ | | 9 | private String cache;↵
|
8 | private String constraints;↵ | | 10 | private ↵
|
|
9 | public CreateIndex↵ | | 11 | boolean cycle;↵
|
| | | 12 | ↵
|
10 | SqlExtractor(String indexName, String tableName, String accessMethod,↵ | | 13 | public AlterSequenceSqlExtractor(String sequenceName, String ↵
|
11 | String[] columns, boolean unique, ↵ | | 14 | increment, String minimum, String maximum,↵
|
12 | String tablespace, String constraints)↵ | | 15 | String restart, String cache, boolean cycle)↵
|
13 | {↵ | | 16 | {↵
|
14 | super();↵ | | 17 | super();↵
|
15 | this.indexName = indexName;↵ | | 18 | this.↵
|
16 | this.tableName = tableName;↵ | | |
|
17 | this.accessMethod = accessMethod;↵ | | |
|
18 | this.columns = columns;↵ | | |
|
19 | this.unique = unique↵ | | 19 | sequenceName = sequenceName;↵
|
| | | 20 | this.increment = increment;↵
|
| | | 21 | this.minimum = minimum;↵
|
| | | 22 | this.maximum = maximum;↵
|
20 | ;↵ | | 23 | this.restart = restart;↵
|
21 | this.tablespace = tablespace;↵ | | 24 | this.cache = cache;↵
|
22 | this.constraints = constraints;↵ | | 25 | this.cycle = cycle;↵
|
23 | }↵ | | 26 | }↵
|
|
24 | public String[] getSql(HibernateDialect dialect)↵ | | 27 | public String[] getSql(HibernateDialect dialect)↵
|
25 | {↵ | | 28 | {↵
|
26 | return new String[] {↵ | | 29 | return ↵
|
27 | dialect.getCreateIndexSQL(indexName, tableName, accessMethod, columns, unique, tablespace, constraints, qualifier, prefs)↵ | | 30 | dialect.getAlterSequenceSQL(sequenceName, increment, minimum, maximum, restart, cache, cycle, qualifier, prefs)↵
|
28 | };↵ | | 31 | ;↵
|
29 | }↵ | | 32 | }↵
|
|
30 | public boolean supportsOperation(HibernateDialect dialect)↵ | | 33 | public boolean supportsOperation(HibernateDialect dialect)↵
|
31 | {↵ | | 34 | {↵
|
32 | return dialect.supportsCreateIndex() | | 35 | return dialect.supportsAlterSequence()
|