public class DDLCreateUtils extends Object
| Constructor and Description |
|---|
DDLCreateUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkAndInsertToNotRepeatSeq(Set<SequenceIdGenerator> notRepeatedSeq,
SequenceIdGenerator seq)
if name not found, add
If name same, but other fields different, throw exception If name same, and other field same, ignore |
protected static void |
checkAndInsertToNotRepeatTable(Set<TableIdGenerator> notRepeatedSeq,
TableIdGenerator tab)
if name not found, add
If name same, but other fields different, throw exception If name same, and other field same, ignore |
static String[] |
toAddColumnDDL(Dialect dialect,
ColumnModel... columnModels)
Transfer columnModels to add column DDL String array like:
"alter table xx_table add [column] xxx_column ...
|
static String[] |
toCreateDDL(Dialect dialect,
TableModel... tables)
Transfer tables to DDL by given dialect and without format it, if want get a
formatted DDL, use DDLFormatter.format(DDLs) method to format it
|
public static String[] toAddColumnDDL(Dialect dialect, ColumnModel... columnModels)
public static String[] toCreateDDL(Dialect dialect, TableModel... tables)
protected static void checkAndInsertToNotRepeatSeq(Set<SequenceIdGenerator> notRepeatedSeq, SequenceIdGenerator seq)
protected static void checkAndInsertToNotRepeatTable(Set<TableIdGenerator> notRepeatedSeq, TableIdGenerator tab)
Copyright © 2022. All rights reserved.