public abstract class BaseTableScriptCreator extends Object implements TableScriptInterface
构造器和说明 |
---|
BaseTableScriptCreator() |
限定符和类型 | 方法和说明 |
---|---|
abstract String |
alterField(PropertyVO propertyVO) |
abstract String |
createIndexKey(PropertyVO propertyVO) |
abstract String |
createPrimaryKey(PropertyVO propertyVO) |
String |
createUnique(EntityVO entityVO) |
abstract String |
dropIndexKey(PropertyVO propertyVO) |
abstract String |
dropPrimaryKey(String tableName) |
String |
dropUnique(EntityVO entityVO) |
abstract boolean |
exist(String tableName) |
abstract boolean |
exist(String tableName,
String fieldName) |
abstract List<EntityVO> |
getEntities() |
abstract EntityVO |
getEntity(String tableName)
获取真实数据字段列表
|
abstract String |
getMappingType(PropertyVO propertyVO) |
PropertyVO |
getProperty(String tableName,
String fieldName)
获取数据字表字段
|
abstract int |
getTableFieldLength(String tableName,
String fieldName)
获取数据库字段长度
|
abstract String |
getTableFieldType(String tableName,
String fieldName)
获取数据库字段类型
|
boolean |
isEqualsProperty(PropertyVO propertyVO)
判断字段类型、长度是否一致
|
boolean |
isEqualsProperty(PropertyVO xmlProperty,
PropertyVO fieldPropertyVO) |
abstract boolean |
isExistIndexKey(PropertyVO propertyVO) |
abstract boolean |
isExistPrimaryKey(String tableName) |
String |
saveTable(EntityVO entityVO) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createField, createTable, dropField, droptable, getEntityNames, getProperties
public abstract boolean exist(String tableName, String fieldName) throws SQLException
exist
在接口中 TableScriptInterface
SQLException
public abstract boolean exist(String tableName) throws SQLException
exist
在接口中 TableScriptInterface
SQLException
public abstract String getMappingType(PropertyVO propertyVO) throws SQLException
getMappingType
在接口中 TableScriptInterface
SQLException
public abstract boolean isExistPrimaryKey(String tableName) throws SQLException
isExistPrimaryKey
在接口中 TableScriptInterface
SQLException
public abstract String dropPrimaryKey(String tableName)
dropPrimaryKey
在接口中 TableScriptInterface
public abstract String createPrimaryKey(PropertyVO propertyVO)
createPrimaryKey
在接口中 TableScriptInterface
public abstract String dropIndexKey(PropertyVO propertyVO) throws SQLException
SQLException
public abstract String createIndexKey(PropertyVO propertyVO) throws SQLException
SQLException
public abstract boolean isExistIndexKey(PropertyVO propertyVO) throws SQLException
SQLException
public abstract String getTableFieldType(String tableName, String fieldName) throws SQLException
TableScriptInterface
getTableFieldType
在接口中 TableScriptInterface
SQLException
public abstract EntityVO getEntity(String tableName) throws SQLException
TableScriptInterface
getEntity
在接口中 TableScriptInterface
SQLException
public abstract int getTableFieldLength(String tableName, String fieldName) throws SQLException
TableScriptInterface
getTableFieldLength
在接口中 TableScriptInterface
SQLException
public PropertyVO getProperty(String tableName, String fieldName) throws SQLException
TableScriptInterface
getProperty
在接口中 TableScriptInterface
SQLException
public boolean isEqualsProperty(PropertyVO propertyVO) throws SQLException
TableScriptInterface
isEqualsProperty
在接口中 TableScriptInterface
SQLException
public boolean isEqualsProperty(PropertyVO xmlProperty, PropertyVO fieldPropertyVO) throws SQLException
isEqualsProperty
在接口中 TableScriptInterface
SQLException
public String createUnique(EntityVO entityVO)
createUnique
在接口中 TableScriptInterface
public String dropUnique(EntityVO entityVO)
dropUnique
在接口中 TableScriptInterface
public abstract String alterField(PropertyVO propertyVO) throws SQLException
alterField
在接口中 TableScriptInterface
SQLException
public String saveTable(EntityVO entityVO) throws SQLException
saveTable
在接口中 TableScriptInterface
SQLException
public abstract List<EntityVO> getEntities() throws SQLException
getEntities
在接口中 TableScriptInterface
SQLException
Copyright © 2025. All rights reserved.