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