Uses of Class
com.github.drinkjava2.jdialects.model.TableModel

Packages that use TableModel
com.github.drinkjava2.jdialects   
com.github.drinkjava2.jdialects.model   
com.github.drinkjava2.jsqlbox   
com.github.drinkjava2.jsqlbox.entitynet   
com.github.drinkjava2.jsqlbox.sharding   
com.github.drinkjava2.jsqlbox.sqlitem   
 

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 database metaData 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 basic database columns structure, but in future version may support
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 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 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
 

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)
           
static TableModel[] SqlBoxContextUtils.loadMetaTableModels(SqlBoxContext ctx, Dialect dialect)
          Read database Meta info into SqlBox[]
 

Methods in com.github.drinkjava2.jsqlbox with parameters of type TableModel
static ColumnModel SqlBoxContextUtils.findMatchColumnForJavaField(String entityField, TableModel tableModel)
           
static
<T> T
SqlBoxContextUtils.mapToEntityBean(TableModel model, Map<String,Object> oneRow)
          Convert one row data into EntityBean
 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)
           
static List<Object> EntityIdUtils.getOnlyOneFieldFromIds(Iterable<?> ids, TableModel model, String entityFieldName)
          Get the real id list only for one java field, because Iterable ids may be compound id
static Object EntityIdUtils.readFeidlValueFromEntityId(Object entityId, TableModel model, String entityFieldName)
          Read field value from entityId: 1) if entityId is map, get the value by use fieldName as key
2) if entityId is basic java Object, direct return it 3) if is Entity? read field value from it.
static
<T> T
EntityIdUtils.setEntityIdValues(T bean, Object entityId, TableModel model)
          Put one id value into a entity bean, or put values according a map
 

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 ShardTable SqlItem, return real master SqlBoxContexts array
 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 SqlItem(SqlOption.SHARD_TABLE, entityOrClass, shardKey1, optionalShardKey2) item, return real table names array
 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)
           
 



Copyright © 2018. All rights reserved.