类 MysqlStrategy
java.lang.Object
org.dromara.autotable.strategy.mysql.MysqlStrategy
- 所有已实现的接口:
org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
public class MysqlStrategy
extends Object
implements org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
项目启动时自动扫描配置的目录中的model,根据配置的规则自动创建或更新表 该逻辑只适用于mysql,其他数据库尚且需要另外扩展,因为sql的语法不同
- 版本:
- 2019/07/06
- 作者:
- sunchenbin, Spet
-
字段概要
从接口继承的字段 org.dromara.autotable.core.strategy.IStrategy
log, STRATEGY_THREAD_LOCAL -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明@NonNull MysqlTableMetadataanalyseClass(Class<?> beanClass) @NonNull MysqlCompareTableInfocompareTable(MysqlTableMetadata tableMetadata) createTable(MysqlTableMetadata tableMetadata) modifyTable(MysqlCompareTableInfo mysqlCompareTableInfo) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.dromara.autotable.core.strategy.IStrategy
checkTableNotExist, concatWrapName, createMode, createSchema, createTable, executeCreateTable, executeSql, indexNameMaxLength, listAllTables, start, start, updateMode, validateMode, wrapIdentifier, wrapSql
-
构造器详细资料
-
MysqlStrategy
public MysqlStrategy()
-
-
方法详细资料
-
databaseDialect
- 指定者:
databaseDialect在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
identifier
- 指定者:
identifier在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
typeMapping
- 指定者:
typeMapping在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
dropTable
- 指定者:
dropTable在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
analyseClass
- 指定者:
analyseClass在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
createTable
- 指定者:
createTable在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
compareTable
- 指定者:
compareTable在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-
modifyTable
- 指定者:
modifyTable在接口中org.dromara.autotable.core.strategy.IStrategy<MysqlTableMetadata,MysqlCompareTableInfo>
-