1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.impex.schema.impl.mysql;
17
18 import java.util.List;
19
20 import org.kuali.common.impex.model.ForeignKey;
21 import org.kuali.common.impex.model.Sequence;
22 import org.kuali.common.impex.model.Table;
23 import org.kuali.common.impex.model.View;
24 import org.kuali.common.impex.schema.impl.AbstractSchemaSqlProducer;
25 import org.kuali.common.impex.schema.impl.NoOpProvider;
26
27 public class MySqlSchemaProducer extends AbstractSchemaSqlProducer {
28
29 private MySqlTableSqlProducer tableSqlProducer = new MySqlTableSqlProducer();
30
31 private MySqlViewSqlProducer viewSqlProducer = new MySqlViewSqlProducer();
32
33 private MySqlSequenceSqlProducer sequenceSqlProducer = new MySqlSequenceSqlProducer();
34
35 private MySqlForeignKeySqlProducer foreignKeySqlProducer = new MySqlForeignKeySqlProducer();
36
37 public MySqlSchemaProducer() {
38 tableSqlProducer.setMappingProvider(new NoOpProvider());
39 }
40
41 public MySqlTableSqlProducer getTableSqlProducer() {
42 return tableSqlProducer;
43 }
44
45 @Override
46 public List<String> getTablesSql(List<Table> tables) {
47 return tableSqlProducer.getTablesSql(tables);
48 }
49
50 @Override
51 public List<String> getForeignKeySql(List<ForeignKey> foreignKeys) {
52 return foreignKeySqlProducer.getForeignKeySql(foreignKeys);
53 }
54
55 @Override
56 public List<String> getSequencesSql(List<Sequence> sequences) {
57 return sequenceSqlProducer.getSequencesSql(sequences);
58 }
59
60 @Override
61 public List<String> getViewsSql(List<View> views) {
62 return viewSqlProducer.getViewsSql(views);
63 }
64 }