public class DdlToSql extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getPrimaryKeyStatement(String databaseName) |
static String |
getStringPrimaryKeyStatement(String databaseName) |
static <T> String |
toCreateTableSQL(Class<T> entityClass,
String tableName)
根据Javabean生成数据库表建表语句,Javabean无需配置过多的字段信息.此方法只考虑通用情况,若有详细需求,不建议采用
According to the statement of creating database table generated by JavaBean, JavaBean does not need to configure too much field information. |
static <T> String |
toDropIndexSql(Class<T> entityClass,
String indexName) |
static <T> String |
toDropTableSimpleSql(String tableName) |
static <T> String |
toDropTableSql(String tableName) |
static <T> String |
toIndexSql(Class<T> entityClass,
String fields,
String indexName,
String PREFIX,
String IndexTypeTip,
String IndexType) |
static <T> String |
toPrimaryKeySql(Class<T> entityClass,
String fields,
String keyName) |
public static <T> String toCreateTableSQL(Class<T> entityClass, String tableName)
entityClass - class of JavabeantableName - table namepublic static <T> String toPrimaryKeySql(Class<T> entityClass, String fields, String keyName)
public static <T> String toIndexSql(Class<T> entityClass, String fields, String indexName, String PREFIX, String IndexTypeTip, String IndexType)
Copyright © 2024. All rights reserved.