|
||||||||||
| 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 |
|---|
| Fields in com.github.drinkjava2.jdialects with type parameters of type TableModel | |
|---|---|
static Map<Class<?>,TableModel> |
TableModelUtilsOfEntity.globalTableModelCache
|
| Methods in com.github.drinkjava2.jdialects that return TableModel | |
|---|---|
static TableModel[] |
TableModelUtilsOfDb.db2Models(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 database metaData to TableModels, note: 1)This method does not close connection, do not forgot close it later 2)This method does not read sequence, index, unique constraints |
static TableModel |
TableModelUtilsOfEntity.entity2EditableModel(Class<?> entityClass)
Convert entity class to a Editable TableModel instance |
static TableModel[] |
TableModelUtilsOfEntity.entity2EditableModels(Class<?>... entityClasses)
Convert entity classes to a editable TableModel instances |
static TableModel |
TableModelUtils.entity2Model(Class<?> entityClass)
Convert entity class to a editable TableModel instance |
static TableModel[] |
TableModelUtils.entity2Models(Class<?>... entityClasses)
Convert entity classes to editable TableModel instances |
static TableModel[] |
TableModelUtilsOfEntity.entity2ReadOnlyModel(Class<?>... entityClasses)
Convert entity classes to a read-only TableModel instances |
static TableModel |
TableModelUtilsOfEntity.entity2ReadOnlyModel(Class<?> entityClass)
Convert entity class to a read-only TableModel instance |
static TableModel |
TableModelUtils.entity2ReadOnlyModel(Class<?> entityClass)
Convert entity class to a read-only TableModel instance |
static TableModel[] |
TableModelUtils.entity2ReadOnlyModels(Class<?>... entityClasses)
Convert entity classes to read-only TableModel instances |
| Methods in com.github.drinkjava2.jdialects with parameters of type TableModel | |
|---|---|
static void |
TableModelUtils.bindGlobalModel(Class<?> entityClass,
TableModel tableModel)
This method bind a tableModel to a entity class, this is a global setting |
static String |
TableModelUtilsOfJavaSrc.getClassNameFromTableModel(TableModel model)
Map database table name to entity class name, example: user_name -> UserName USER_NAME -> UserName User_naMe -> UserName UserName -> UserName USERNAME -> USERNAME userName -> UserName username -> Username |
static String |
DebugUtils.getFkeyDebugInfo(TableModel t)
|
static String |
DebugUtils.getTableModelDebugInfo(TableModel model)
|
static String |
DebugUtils.getTableModelsDebugInfo(TableModel[] models)
|
static String |
TableModelUtils.model2JavaSrc(TableModel model,
boolean linkStyle,
boolean activeRecord,
String packageName)
Convert a TablemModel instance to Java entity class source code |
static String |
TableModelUtilsOfJavaSrc.modelToJavaSourceCode(TableModel model,
boolean linkStyle,
boolean activeRecord,
String packageName)
Convert a TablemModel instance to Java entity class source code |
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 |
UniqueModel.getTableModel()
|
TableModel |
IndexModel.getTableModel()
|
TableModel |
FKeyModel.getTableModel()
|
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 |
UniqueModel.setTableModel(TableModel tableModel)
|
void |
IndexModel.setTableModel(TableModel tableModel)
|
void |
FKeyModel.setTableModel(TableModel tableModel)
|
void |
ColumnModel.setTableModel(TableModel tableModel)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||