|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TableModel | |
|---|---|
| com.github.drinkjava2.jdialects | |
| com.github.drinkjava2.jdialects.model | |
| Uses of TableModel in com.github.drinkjava2.jdialects |
|---|
| Methods in com.github.drinkjava2.jdialects that return TableModel | |
|---|---|
static TableModel[] |
TableModelUtilsOfDb.db2Model(Connection con,
Dialect dialect)
Convert JDBC connected database structure to TableModels, note: 1)This method does not close connection 2)This method does not support sequence, foreign keys, primary keys..., but will improve later. |
static TableModel[] |
TableModelUtils.db2Models(Connection con,
Dialect dialect)
Convert JDBC connected database structure to TableModels, note: 1)This method does not close connection, do not forgot close it later 2)This method does not support sequence, foreign keys, primary keys..., only read the database structure, but in future version may support |
static TableModel[] |
TableModelUtilsOfEntity.entity2Model(Class<?>... entityClasses)
Convert entity or JPA annotated entity classes to "TableModel" Object, |
static TableModel |
TableModelUtils.entity2Model(Class<?> entityClass)
Convert entity class or JPA annotated entity class to "TableModel" Object, if class have a "config(TableModel tableModel)" method, will also call it. |
static TableModel[] |
TableModelUtils.entity2Models(Class<?>... entityClasses)
Convert entity or JPA annotated entity classes to "TableModel" Object, if these classes have a "config(TableModel tableModel)" method, will also call it. |
static TableModel |
TableModelUtilsOfEntity.oneEntity2Model(Class<?> entityClass)
Convert a Java entity class or JPA annotated entity classes to "TableModel" Object, if this class has a "config(TableModel tableModel)" method, will also call it |
| Methods in com.github.drinkjava2.jdialects with parameters of type TableModel | |
|---|---|
static String |
DebugUtils.getFkeyDebugInfo(TableModel t)
|
static String |
DebugUtils.getTableModelDebugInfo(TableModel model)
|
static String |
DebugUtils.getTableModelsDebugInfo(TableModel[] models)
|
static String[] |
DDLCreateUtils.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 |
String[] |
Dialect.toCreateDDL(TableModel... tables)
Transfer tables to create DDL |
String[] |
Dialect.toDropAndCreateDDL(TableModel... tables)
Transfer tables to drop and create DDL String array |
static String[] |
DDLDropUtils.toDropDDL(Dialect dialect,
TableModel... tables)
Transfer tables to drop DDL and without format it |
String[] |
Dialect.toDropDDL(TableModel... tables)
Transfer tables to drop DDL |
| Uses of TableModel in com.github.drinkjava2.jdialects.model |
|---|
| Methods in com.github.drinkjava2.jdialects.model that return TableModel | |
|---|---|
TableModel |
TableModel.addColumn(ColumnModel column)
Add a ColumnModel |
TableModel |
TableModel.check(String check)
Add the table check, note: not all database support table check |
TableModel |
TableModel.comment(String comment)
Add the table comment, note: not all database support table comment |
TableModel |
TableModel.engineTail(String engineTail)
If support engine like MySQL or MariaDB, add engineTail at the end of "create table..." DDL, usually used to set encode String like " DEFAULT CHARSET=utf8" for MySQL |
TableModel |
ColumnModel.getTableModel()
|
TableModel |
TableModel.newCopy()
|
TableModel |
TableModel.removeColumn(String columnName)
Remove a ColumnModel by given columnName |
TableModel |
TableModel.removeFKey(String fkeyName)
Remove a FKey by given fkeyName |
| Methods in com.github.drinkjava2.jdialects.model with parameters of type TableModel | |
|---|---|
void |
ColumnModel.setTableModel(TableModel tableModel)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||