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