|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| 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)
|
| Uses of TableModel in com.github.drinkjava2.jsqlbox |
|---|
| Fields in com.github.drinkjava2.jsqlbox declared as TableModel | |
|---|---|
protected TableModel[] |
SqlBoxContext.tailModels
|
| Methods in com.github.drinkjava2.jsqlbox that return TableModel | |
|---|---|
static TableModel[] |
SqlBoxContextUtils.findAllModels(Object... sqlItems)
Extract models from sqlItems |
static TableModel |
SqlBoxContextUtils.findEntityOrClassTableModel(Object entityOrClass)
|
static TableModel |
SqlBoxContextUtils.findFirstModel(Object... optionItems)
|
static TableModel |
SqlBoxContextUtils.findTableModel(Object entityOrClass,
Object... optionItems)
if optionItems has a TabelModel, use it, otherwise find tablemodel from entityOrClass |
static TableModel |
SqlBoxContextUtils.findTailModel(SqlBoxContext ctx,
TableModel entityModel,
Object... optionItems)
Return first tail TableModel, if not found return null |
TableModel[] |
SqlBoxContext.getTailModels()
|
static TableModel[] |
SqlBoxContextUtils.loadMetaTableModels(SqlBoxContext ctx,
Dialect dialect)
Read database Meta info into SqlBox[] |
TableModel |
ActiveRecord.model()
|
| Methods in com.github.drinkjava2.jsqlbox with parameters of type TableModel | ||
|---|---|---|
static TableModel |
SqlBoxContextUtils.findTailModel(SqlBoxContext ctx,
TableModel entityModel,
Object... optionItems)
Return first tail TableModel, if not found return null |
|
static
|
SqlBoxContextUtils.mapToEntityBean(TableModel model,
Map<String,Object> oneRow)
Convert one row data into EntityBean |
|
void |
SqlBoxContext.setTailModels(TableModel[] tailModels)
|
|
String[] |
SqlBoxContext.toCreateDDL(TableModel... tables)
Shortcut call to dialect.toCreateDDL method |
|
String[] |
SqlBoxContext.toDropAndCreateDDL(TableModel... tables)
Shortcut call to dialect.toDropAndCreateDDL method |
|
String[] |
SqlBoxContext.toDropDDL(TableModel... tables)
Shortcut call to dialect.toDropDDL method |
|
| Uses of TableModel in com.github.drinkjava2.jsqlbox.entitynet |
|---|
| Methods in com.github.drinkjava2.jsqlbox.entitynet that return types with arguments of type TableModel | |
|---|---|
Map<String,TableModel> |
EntityNet.getConfigs()
|
| Methods in com.github.drinkjava2.jsqlbox.entitynet with parameters of type TableModel | |
|---|---|
static Object |
EntityIdUtils.buildEntityIdFromEntity(Object entity,
TableModel model)
|
static Object |
EntityIdUtils.buildEntityIdFromMap(Map<String,Object> map,
TableModel model)
|
static Object |
EntityIdUtils.buildEntityIdFromOneRow(String[] titles,
Object[] oneRow,
TableModel model,
String alias)
Build entityId from titles, oneRow, model, alias |
static Object |
EntityIdUtils.buildEntityIdFromUnknow(Object entityId,
TableModel model)
Build Node id from unknown entityIdOrIdMap |
Set<Object> |
EntityNet.doFindRelatedSet(int index,
Object entity,
TableModel[] tbModels)
|
| Method parameters in com.github.drinkjava2.jsqlbox.entitynet with type arguments of type TableModel | |
|---|---|
EntityNet |
EntityNet.setConfigs(Map<String,TableModel> configs)
|
| Uses of TableModel in com.github.drinkjava2.jsqlbox.sharding |
|---|
| Methods in com.github.drinkjava2.jsqlbox.sharding with parameters of type TableModel | |
|---|---|
SqlBoxContext[] |
ShardingTool.handleShardDatabase(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
Dealing a shardKey array based on current SqlBoxContext and TableModel, return SqlBoxContext array, in this jSqlBox version, only support return 1 SqlBoxContext |
SqlBoxContext[] |
ShardingRangeTool.handleShardDatabase(SqlBoxContext ctx,
TableModel model,
Object... shardkey)
|
SqlBoxContext[] |
ShardingModTool.handleShardDatabase(SqlBoxContext ctx,
TableModel model,
Object... shardkey)
|
String[] |
ShardingTool.handleShardTable(SqlBoxContext ctx,
TableModel tableModel,
Object... shardKey)
Dealing a shardKey array based on current SqlBoxContext and TableModel, return table name array, in this jSqlBox version, only support return 1 table name |
String[] |
ShardingRangeTool.handleShardTable(SqlBoxContext ctx,
TableModel model,
Object... shardkey)
|
String[] |
ShardingModTool.handleShardTable(SqlBoxContext ctx,
TableModel model,
Object... shardkey)
|
| Uses of TableModel in com.github.drinkjava2.jsqlbox.sqlitem |
|---|
| Constructors in com.github.drinkjava2.jsqlbox.sqlitem with parameters of type TableModel | |
|---|---|
SampleItem(Object entityBean,
TableModel model)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||