public class MysqlTableScriptCreator extends BaseTableScriptCreator
| 限定符和类型 | 字段和说明 | 
|---|---|
| static Map<String,String> | TYPE_MAPPING字段类型转换 | 
| 构造器和说明 | 
|---|
| MysqlTableScriptCreator(String dbName) | 
createUnique, dropUnique, getProperty, isEqualsProperty, isEqualsProperty, saveTablepublic MysqlTableScriptCreator(String dbName)
public String getStartSignTag()
public String getEndSignTag()
public String createTable(EntityVO entityVO) throws SQLException
SQLExceptionpublic String dropField(PropertyVO propertyVO)
public String createField(PropertyVO propertyVO) throws SQLException
TableScriptInterfaceSQLExceptionpublic boolean exist(String tableName, String fieldName) throws SQLException
exist 在接口中 TableScriptInterfaceexist 在类中 BaseTableScriptCreatorSQLExceptionpublic boolean exist(String tableName) throws SQLException
exist 在接口中 TableScriptInterfaceexist 在类中 BaseTableScriptCreatorSQLExceptionpublic boolean isExistPrimaryKey(String tableName) throws SQLException
isExistPrimaryKey 在接口中 TableScriptInterfaceisExistPrimaryKey 在类中 BaseTableScriptCreatorSQLExceptionpublic String dropPrimaryKey(String tableName)
dropPrimaryKey 在接口中 TableScriptInterfacedropPrimaryKey 在类中 BaseTableScriptCreatorpublic String createPrimaryKey(PropertyVO propertyVO)
createPrimaryKey 在接口中 TableScriptInterfacecreatePrimaryKey 在类中 BaseTableScriptCreatorpublic String getTableFieldType(String tableName, String fieldName) throws SQLException
getTableFieldType 在接口中 TableScriptInterfacegetTableFieldType 在类中 BaseTableScriptCreatortableName - fieldName - SQLExceptionpublic int getTableFieldLength(String tableName, String fieldName) throws SQLException
TableScriptInterfacegetTableFieldLength 在接口中 TableScriptInterfacegetTableFieldLength 在类中 BaseTableScriptCreatorSQLExceptionpublic String alterField(PropertyVO propertyVO) throws SQLException
alterField 在接口中 TableScriptInterfacealterField 在类中 BaseTableScriptCreatorSQLExceptionpublic EntityVO getEntity(String tableName) throws SQLException
TableScriptInterfacegetEntity 在接口中 TableScriptInterfacegetEntity 在类中 BaseTableScriptCreatorSQLExceptionpublic String getMappingType(PropertyVO propertyVO) throws SQLException
getMappingType 在接口中 TableScriptInterfacegetMappingType 在类中 BaseTableScriptCreatorSQLExceptionpublic List<EntityVO> getEntities() throws SQLException
getEntities 在接口中 TableScriptInterfacegetEntities 在类中 BaseTableScriptCreatorSQLExceptionpublic Map<String,PropertyVO> getProperties(String tableName) throws SQLException
SQLExceptionpublic List<String> getEntityNames() throws SQLException
SQLExceptionpublic String dropIndexKey(PropertyVO propertyVO) throws SQLException
dropIndexKey 在类中 BaseTableScriptCreatorSQLExceptionpublic String createIndexKey(PropertyVO propertyVO) throws SQLException
createIndexKey 在类中 BaseTableScriptCreatorSQLExceptionpublic String createIndexKey(String entityName, IndexKeyVO indexKeyVO) throws SQLException
SQLExceptionpublic boolean isExistIndexKey(PropertyVO propertyVO) throws SQLException
isExistIndexKey 在类中 BaseTableScriptCreatorSQLExceptionCopyright © 2025. All rights reserved.