@CacheConfig(cacheNames="tableCache") @Transactional(rollbackFor=java.lang.Exception.class) @Service public class CoreDbServiceImpl extends java.lang.Object implements CoreDbService
CoreDbService.modifyTypes| 限定符和类型 | 字段和说明 | 
|---|---|
static java.lang.String[] | 
BIG_FIELD_DATA_TYPE  | 
(专用程序包) CoreTablesColumnMapper | 
coreTablesColumnMapper  | 
(专用程序包) CoreTablesColumnService | 
coreTablesColumnService  | 
(专用程序包) CoreTablesIndexMapper | 
coreTablesIndexMapper  | 
(专用程序包) CoreTablesIndexService | 
coreTablesIndexService  | 
(专用程序包) CoreTablesLinkMapper | 
coreTablesLinkMapper  | 
(专用程序包) CoreTablesLinkService | 
coreTablesLinkService  | 
(专用程序包) CoreTablesMapper | 
coreTablesMapper  | 
(专用程序包) CoreTablesService | 
coreTablesService  | 
(专用程序包) org.springframework.jdbc.core.JdbcTemplate | 
jdbcTemplate  | 
static java.lang.Short | 
MX_TYPE_CATALOG
模型的目录 
 | 
static java.lang.Short | 
MX_TYPE_NORMAL
表模型的类型 通用的模型 
 | 
static java.lang.Short | 
MX_TYPE_TREE
树形的模型 
 | 
(专用程序包) CoreSqlBuilderServiceImpl | 
sqlBuilderService  | 
(专用程序包) SqlExecutor | 
sqlExecutor  | 
| 构造器和说明 | 
|---|
CoreDbServiceImpl()  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
int[] | 
addColumns(java.util.List<CoreTablesColumn> columns)
增加表模型的列 
 | 
int[] | 
addIndexs(java.util.List<CoreTablesIndex> indexs)
添加表模型的索引 
 | 
int[] | 
addLinks(java.util.List<CoreTablesLink> links)
添加约束 
 | 
void | 
beforeModifyColumnCheck(CoreTablesColumn oldColumn,
                       CoreTablesColumn newColumn)
修改字段前的校验:重命名校验,修改字段类型校验,修改字段长度、精度校验 
 | 
boolean | 
beforeModifyColumnCheckBigFieldType(CoreTablesColumn oldColumn,
                                   CoreTablesColumn newColumn)
在修改字段类型前校验大字段与其他类型间的转换规则 
 | 
java.util.List<CoreDbService.modifyTypes> | 
compareColumns(CoreTablesColumn col,
              CoreTablesColumn dbCol)
比较字段的是否相同 
 | 
java.lang.Boolean | 
compareIndexs(CoreTablesIndex index,
             CoreTablesIndex dbindex)
比较索引是否相同 
 | 
int[] | 
createDbTable(CoreTables table)
根据模型创建数据库表 
 | 
int[] | 
createTable(CoreTables table,
           java.util.List<CoreTablesColumn> columns,
           java.util.List<CoreTablesIndex> indexs,
           java.util.List<CoreTablesLink> links)
创建表 这个函数提供无需数据库存在相关的字段,索引,约束 
 | 
void | 
createTableFromJsonModel(CoreTables jsonModel)
创建物理表 
 | 
int[] | 
dropColumns(java.util.List<CoreTablesColumn> columns)
删除表的字段 
 | 
int[] | 
dropIndexs(java.util.List<CoreTablesIndex> indexs)
删除表模型的索引 
 | 
int[] | 
dropLinks(java.util.List<CoreTablesLink> links)
删除约束 
 | 
int[] | 
dropTable(CoreTables table)
删除表 
 | 
java.util.List<java.lang.String> | 
getAllTable(java.lang.String condition)
获取所有用户数据库表名列表 
 | 
java.util.Map<java.lang.String,java.lang.String> | 
getBigFieldColumnNames(java.util.List<CoreTablesColumn> columns)
从字段列表中获取大字段的列名和大字段类型 
 | 
java.util.Map<java.lang.String,CoreTablesColumn> | 
getDBColumnMap(java.lang.String tableName)
获取数据库的表的字段对象Map 这是真实已经创建的表的字段对象Map 
 | 
java.util.List<CoreTablesColumn> | 
getDBColumns(java.lang.String tableName)
获取数据库的表的字段对象集合 这是真实已经创建的表的字段对象集合 
 | 
java.util.Map<java.lang.String,CoreTablesIndex> | 
getDBIndexs(java.lang.String tableName)
获取数据库的表的索引对象 这是真实已经创建的表的索引对象 
 | 
CoreTables | 
getDBTable(java.lang.String tableName)
获取数据库的表的对象 这是真实已经创建的表的对象 
 | 
java.lang.Boolean | 
getInitSystem()
平台是否初始化标志 
 | 
Serializer | 
getNewModelSerializer()
获取模型序列化对象 
 | 
CoreTables | 
getTableById(java.lang.String tbId)
通过表id获取表模型对象 
 | 
CoreTablesColumn | 
getTableColumnById(java.lang.String columnId)
通过字段id 获取字段对象 
 | 
java.util.List<CoreTablesColumn> | 
getTableColumnsById(java.lang.String tbId)
通过表id 获取表的所有的列集合对象 
 | 
CoreTablesIndex | 
getTableIndexById(java.lang.String indexId)
通过索引id 获取索引对象 
 | 
java.util.List<CoreTablesIndex> | 
getTableIndexsById(java.lang.String tbId)
通过表id获取表模型的索引对象集合 
 | 
CoreTablesLink | 
getTableLinkById(java.lang.String linkId)
通过约束id 获取约束对象 
 | 
java.util.List<CoreTablesLink> | 
getTableLinksById(java.lang.String tbId)
通过表id获取表模型的约束对象集合 
 | 
java.util.List<CoreTables> | 
getTableModelFromDataBaseStructure(java.lang.String condition)
根据条件获取表模型对象集合 
 | 
int | 
getTableRecordCount(CoreTables tb)
获取表的数据记录数 
 | 
int[] | 
initDataBase()
数据库初始化 创建系统表等 
 | 
int[] | 
innerAddColumns(CoreTables table,
               java.util.List<CoreTablesColumn> columns)
增加表的字段 每次调用只能一个表内增加.不能多个表一次调用增加 
 | 
int[] | 
innerAddIndexs(CoreTables table,
              java.util.List<CoreTablesIndex> indexs)
建立表的索引 每次调用只能一个表内增加.不能多个表一次调用增加 
 | 
int[] | 
innerAddLinks(CoreTables table,
             java.util.List<CoreTablesLink> links)
增加约束 注意:每次调用只能一个表内增加.不能多个表一次调用增加 
 | 
int[] | 
innerDropColumns(CoreTables table,
                java.util.List<CoreTablesColumn> columns)
删除表的字段 
 | 
int[] | 
innerDropIndexs(CoreTables table,
               java.util.List<CoreTablesIndex> indexs)
建立表的索引 注意:每次调用只能一个表内增加.不能多个表一次调用增加 
 | 
int[] | 
innerDropLinks(CoreTables table,
              java.util.List<CoreTablesLink> links)
删除约束 
 | 
void | 
insertModelFromJsonModel(CoreTables jsonModel)
导入Json模型的表, 列,索引,约束到模型表 
 | 
void | 
insertOrUpdateRowFromJsonModelRows(CoreTables jsonModel,
                                  java.lang.String bigfieldFilePath)
插入或更新模型的数据库记录,如果记录存在则更新,否则执行插入 
 | 
void | 
insertRowFromJsonModelRows(CoreTables jsonModel,
                          java.lang.String bigfieldFilePath)
导入模型的数据库记录 
 | 
java.lang.Boolean | 
isColumnExists(CoreTables tb,
              CoreTablesColumn column)
字段是否存在 
 | 
java.lang.Boolean | 
isIndexExists(CoreTables tb,
             CoreTablesIndex index)
索引是否存在 
 | 
java.lang.Boolean | 
isLinkExists(CoreTables tb,
            CoreTablesLink link)
约束是否存在 
 | 
java.lang.Boolean | 
isTableExists(CoreTables tb)
表是否存在 
 | 
void | 
setInitSystem(java.lang.Boolean isInit)
设置开始初始化标志 
 | 
void | 
syncColumn(CoreTables tb,
          CoreTablesColumn col,
          java.util.Map<java.lang.String,CoreTablesColumn> dbColumnsMap)
同步模型字段到数据库 
 | 
void | 
syncIndex(CoreTables tb)
同步索引到数据库 
 | 
void | 
syncModelFromJsonModel(CoreTables jsonModel,
                      java.lang.String bigFieldFilePath)
同步jsonModel模型到表模型 
 | 
void | 
syncModelFromJsonModel(java.io.File modelFile)
同步模型到表模型 
 | 
void | 
syncModelFromJsonModel(java.net.URL url)
同步模型到表模型 
 | 
void | 
syncModelIndexFromJsonModel(CoreTables table)
同步模型索引 
 | 
CoreTables | 
syncTableByDBModel(CoreTables model)
同步数据库表模型到数据库物理表 表结构同步 
 | 
CoreTables | 
syncTableByJsonModel(CoreTables model,
                    java.lang.String bigFieldFilePath)
同步json模型到数据库物理表 包含结构与数据 
 | 
int[] | 
updateColumn(CoreTables table,
            CoreTablesColumn oldColumn,
            CoreTablesColumn newColumn,
            java.util.List<CoreDbService.modifyTypes> changeTypes)
更新字段 
 | 
int[] | 
updateIndexs(CoreTables table,
            java.util.List<CoreTablesIndex> indexs,
            java.util.List<CoreTablesIndex> oldIndexs)
更新索引 
 | 
int[] | 
updateLinks(CoreTables table,
           java.util.List<CoreTablesLink> links,
           java.util.List<CoreTablesLink> oldLinks)
更新约束 
 | 
int[] | 
updateTable(CoreTables newtable)
更新表 
 | 
public static final java.lang.String[] BIG_FIELD_DATA_TYPE
@Autowired CoreSqlBuilderServiceImpl sqlBuilderService
@Autowired org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
@Autowired CoreTablesMapper coreTablesMapper
@Autowired CoreTablesColumnMapper coreTablesColumnMapper
@Autowired CoreTablesIndexMapper coreTablesIndexMapper
@Autowired CoreTablesLinkMapper coreTablesLinkMapper
@Autowired CoreTablesColumnService coreTablesColumnService
@Autowired CoreTablesIndexService coreTablesIndexService
@Autowired CoreTablesLinkService coreTablesLinkService
@Autowired CoreTablesService coreTablesService
@Autowired SqlExecutor sqlExecutor
public static final java.lang.Short MX_TYPE_NORMAL
public static final java.lang.Short MX_TYPE_TREE
public static final java.lang.Short MX_TYPE_CATALOG
public CoreTables getTableById(java.lang.String tbId) throws java.lang.Exception
CoreDbServicegetTableById 在接口中 CoreDbServicetbId - 表模型rwidjava.lang.Exception - 出错会抛出异常@Cacheable(key="\'columns\'+#tbId") public java.util.List<CoreTablesColumn> getTableColumnsById(java.lang.String tbId) throws java.lang.Exception
CoreDbServicegetTableColumnsById 在接口中 CoreDbServicetbId - 表模型rwidjava.lang.Exception - 出错会抛出异常@Cacheable(key="\'indexs\'+#tbId") public java.util.List<CoreTablesIndex> getTableIndexsById(java.lang.String tbId)
CoreDbServicegetTableIndexsById 在接口中 CoreDbServicetbId - 表模型rwid@Cacheable(key="\'links\'+#tbId") public java.util.List<CoreTablesLink> getTableLinksById(java.lang.String tbId)
CoreDbServicegetTableLinksById 在接口中 CoreDbServicetbId - 表模型rwidpublic CoreTablesColumn getTableColumnById(java.lang.String columnId)
CoreDbServicegetTableColumnById 在接口中 CoreDbServicecolumnId - 列IDpublic CoreTablesIndex getTableIndexById(java.lang.String indexId)
CoreDbServicegetTableIndexById 在接口中 CoreDbServiceindexId - 索引idpublic CoreTablesLink getTableLinkById(java.lang.String linkId)
CoreDbServicegetTableLinkById 在接口中 CoreDbServicelinkId - 约束idpublic int[] initDataBase()
                   throws java.io.IOException,
                          freemarker.template.TemplateException,
                          NotExistsColumnsForTableException,
                          java.sql.SQLException
CoreDbServiceinitDataBase 在接口中 CoreDbServicejava.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误NotExistsColumnsForTableException - 列不存在错误java.sql.SQLException - 出错抛出数据库异常public int[] createTable(CoreTables table, java.util.List<CoreTablesColumn> columns, java.util.List<CoreTablesIndex> indexs, java.util.List<CoreTablesLink> links) throws java.lang.Exception
CoreDbServicecreateTable 在接口中 CoreDbServicetable - 表对象columns - 表字段列表indexs - 表索引列表links - 表约束列表java.lang.Exception - 出错会抛出异常public int[] createDbTable(CoreTables table) throws java.lang.Exception
CoreDbServicecreateDbTable 在接口中 CoreDbServicetable - 表模型实体java.lang.Exception - 出错会抛出异常@CacheEvict(key="#table.getRWID()",
            beforeInvocation=true)
public int[] dropTable(CoreTables table)
                                                                                         throws freemarker.template.TemplateNotFoundException,
                                                                                                freemarker.template.MalformedTemplateNameException,
                                                                                                freemarker.core.ParseException,
                                                                                                java.io.IOException,
                                                                                                freemarker.template.TemplateException,
                                                                                                java.sql.SQLException
CoreDbServicedropTable 在接口中 CoreDbServicetable - 表对象freemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="\'columns\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerDropColumns(CoreTables table,
                                                                                                                   java.util.List<CoreTablesColumn> columns)
                                                                                                            throws java.lang.Exception
CoreDbServiceinnerDropColumns 在接口中 CoreDbServicetable - 表模型实体columns - 表模型列实体Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常InvalidListSizeParamException - list的size出错java.lang.Exception - 出错会抛出异常public int[] dropColumns(java.util.List<CoreTablesColumn> columns) throws java.lang.Exception
CoreDbServicedropColumns 在接口中 CoreDbServicecolumns - 模型字段集合java.lang.Exception - 出错会抛出异常@CacheEvict(key="\'columns\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerAddColumns(CoreTables table,
                                                                                                                  java.util.List<CoreTablesColumn> columns)
                                                                                                           throws java.lang.Exception
CoreDbServiceinnerAddColumns 在接口中 CoreDbServicetable - 表模型实体对象columns - 模型字段集合java.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true) public int[] addColumns(java.util.List<CoreTablesColumn> columns) throws java.lang.Exception
CoreDbServiceaddColumns 在接口中 CoreDbServicecolumns - 模型字段集合java.lang.Exception - 出错会抛出异常@CacheEvict(key="\'columns\'+#table.getRWID()",
            beforeInvocation=true)
public int[] updateColumn(CoreTables table,
                                                                                                               CoreTablesColumn oldColumn,
                                                                                                               CoreTablesColumn newColumn,
                                                                                                               java.util.List<CoreDbService.modifyTypes> changeTypes)
                                                                                                        throws java.lang.Exception
CoreDbServiceupdateColumn 在接口中 CoreDbServicetable - 表模型实体对象oldColumn - 旧的表模型的列实体实例newColumn - 新的表模型的列实体实例changeTypes - 修改类型java.lang.Exception - 出错会抛出异常@CacheEvict(key="\'indexs\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerAddIndexs(CoreTables table,
                                                                                                                java.util.List<CoreTablesIndex> indexs)
                                                                                                         throws freemarker.template.TemplateNotFoundException,
                                                                                                                freemarker.template.MalformedTemplateNameException,
                                                                                                                freemarker.core.ParseException,
                                                                                                                java.io.IOException,
                                                                                                                freemarker.template.TemplateException,
                                                                                                                java.sql.SQLException
CoreDbServiceinnerAddIndexs 在接口中 CoreDbServicetable - 表模型实体indexs - 表模型索引listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常public int[] addIndexs(java.util.List<CoreTablesIndex> indexs) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, java.io.IOException, freemarker.template.TemplateException, java.sql.SQLException
CoreDbServiceaddIndexs 在接口中 CoreDbServiceindexs - 表模型索引listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="\'indexs\'+#table.getRWID()",
            beforeInvocation=true)
public int[] updateIndexs(CoreTables table,
                                                                                                              java.util.List<CoreTablesIndex> indexs,
                                                                                                              java.util.List<CoreTablesIndex> oldIndexs)
                                                                                                       throws freemarker.template.TemplateNotFoundException,
                                                                                                              freemarker.template.MalformedTemplateNameException,
                                                                                                              freemarker.core.ParseException,
                                                                                                              java.io.IOException,
                                                                                                              freemarker.template.TemplateException,
                                                                                                              java.sql.SQLException
CoreDbServiceupdateIndexs 在接口中 CoreDbServicetable - 表模型实体indexs - 表模型索引listoldIndexs - 旧索引实体实例Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="\'indexs\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerDropIndexs(CoreTables table,
                                                                                                                 java.util.List<CoreTablesIndex> indexs)
                                                                                                          throws freemarker.template.TemplateNotFoundException,
                                                                                                                 freemarker.template.MalformedTemplateNameException,
                                                                                                                 freemarker.core.ParseException,
                                                                                                                 java.io.IOException,
                                                                                                                 freemarker.template.TemplateException,
                                                                                                                 java.sql.SQLException
CoreDbServiceinnerDropIndexs 在接口中 CoreDbServicetable - 表模型实体indexs - 表模型索引listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常public int[] dropIndexs(java.util.List<CoreTablesIndex> indexs) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, java.io.IOException, freemarker.template.TemplateException, java.sql.SQLException
CoreDbServicedropIndexs 在接口中 CoreDbServiceindexs - 表模型索引listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="\'links\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerAddLinks(CoreTables table,
                                                                                                              java.util.List<CoreTablesLink> links)
                                                                                                       throws freemarker.template.TemplateNotFoundException,
                                                                                                              freemarker.template.MalformedTemplateNameException,
                                                                                                              freemarker.core.ParseException,
                                                                                                              java.io.IOException,
                                                                                                              freemarker.template.TemplateException,
                                                                                                              java.sql.SQLException
CoreDbServiceinnerAddLinks 在接口中 CoreDbServicetable - 表对象links - 约束的集合freemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常public int[] addLinks(java.util.List<CoreTablesLink> links) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, java.io.IOException, freemarker.template.TemplateException, java.sql.SQLException
CoreDbServiceaddLinks 在接口中 CoreDbServicelinks - 约束Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="\'links\'+#table.getRWID()",
            beforeInvocation=true)
public int[] updateLinks(CoreTables table,
                                                                                                            java.util.List<CoreTablesLink> links,
                                                                                                            java.util.List<CoreTablesLink> oldLinks)
                                                                                                     throws freemarker.template.TemplateNotFoundException,
                                                                                                            freemarker.template.MalformedTemplateNameException,
                                                                                                            freemarker.core.ParseException,
                                                                                                            java.io.IOException,
                                                                                                            freemarker.template.TemplateException,
                                                                                                            java.sql.SQLException,
                                                                                                            InvalidListSizeParamException
CoreDbServiceupdateLinks 在接口中 CoreDbServicetable - 表模型实体links - 约束ListoldLinks - 旧约束Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常InvalidListSizeParamException - list的size出错@CacheEvict(key="\'links\'+#table.getRWID()",
            beforeInvocation=true)
public int[] innerDropLinks(CoreTables table,
                                                                                                               java.util.List<CoreTablesLink> links)
                                                                                                        throws freemarker.template.TemplateNotFoundException,
                                                                                                               freemarker.template.MalformedTemplateNameException,
                                                                                                               freemarker.core.ParseException,
                                                                                                               java.io.IOException,
                                                                                                               freemarker.template.TemplateException,
                                                                                                               java.sql.SQLException
CoreDbServiceinnerDropLinks 在接口中 CoreDbServicetable - 表模型实体links - 约束实体Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常public int[] dropLinks(java.util.List<CoreTablesLink> links) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, java.io.IOException, freemarker.template.TemplateException, java.sql.SQLException
CoreDbServicedropLinks 在接口中 CoreDbServicelinks - 约束Listfreemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常@CacheEvict(key="#tb.getRWID()",
            beforeInvocation=true)
public java.lang.Boolean isTableExists(CoreTables tb)
                                                                                                      throws java.lang.Exception
CoreDbServiceisTableExists 在接口中 CoreDbServicetb - 表实体对象java.lang.Exception - 出错会抛出异常public java.lang.Boolean isColumnExists(CoreTables tb, CoreTablesColumn column) throws java.lang.Exception
CoreDbServiceisColumnExists 在接口中 CoreDbServicetb - 表实体对象column - 表模型约束实体实例java.lang.Exception - 出错会抛出异常public java.lang.Boolean isLinkExists(CoreTables tb, CoreTablesLink link) throws java.lang.Exception
CoreDbServiceisLinkExists 在接口中 CoreDbServicetb - 表实体对象link - 表实体对象java.lang.Exception - 出错会抛出异常public java.lang.Boolean isIndexExists(CoreTables tb, CoreTablesIndex index) throws java.lang.Exception
CoreDbServiceisIndexExists 在接口中 CoreDbServicetb - 表实体对象index - 索引实体对象java.lang.Exception - 出错会抛出异常public int getTableRecordCount(CoreTables tb)
CoreDbServicegetTableRecordCount 在接口中 CoreDbServicetb - 表模型实体实例public CoreTables getDBTable(java.lang.String tableName) throws java.lang.Exception
CoreDbServicegetDBTable 在接口中 CoreDbServicetableName - 表名java.lang.Exception - 出错会抛出异常public java.util.Map<java.lang.String,CoreTablesColumn> getDBColumnMap(java.lang.String tableName) throws java.lang.Exception
CoreDbServicegetDBColumnMap 在接口中 CoreDbServicetableName - 表名java.lang.Exception - 出错会抛出异常public java.util.List<CoreTablesColumn> getDBColumns(java.lang.String tableName) throws java.lang.Exception
CoreDbServicegetDBColumns 在接口中 CoreDbServicetableName - 表模型表编号java.lang.Exception - 出错会抛出异常public java.util.Map<java.lang.String,CoreTablesIndex> getDBIndexs(java.lang.String tableName) throws java.lang.Exception
CoreDbServicegetDBIndexs 在接口中 CoreDbServicetableName - 表名java.lang.Exception - 出错会抛出异常public int[] updateTable(CoreTables newtable) throws java.lang.Exception
CoreDbServiceupdateTable 在接口中 CoreDbServicenewtable - 表模型实体java.lang.Exception - 出错会抛出异常public java.lang.Boolean compareIndexs(CoreTablesIndex index, CoreTablesIndex dbindex)
CoreDbServicecompareIndexs 在接口中 CoreDbServiceindex - 模型的索引dbindex - 数据库的索引public java.util.List<CoreDbService.modifyTypes> compareColumns(CoreTablesColumn col, CoreTablesColumn dbCol) throws java.lang.Exception
CoreDbServicecompareColumns 在接口中 CoreDbServicecol - 表模型的字段对象dbCol - 数据库字段对象java.lang.Exception - 出错会抛出异常public void syncColumn(CoreTables tb, CoreTablesColumn col, java.util.Map<java.lang.String,CoreTablesColumn> dbColumnsMap) throws java.lang.Exception
CoreDbServicesyncColumn 在接口中 CoreDbServicetb - 表模型实体实例col - 表模型的字段对象dbColumnsMap - 数据库字段列表mapjava.lang.Exception - 出错会抛出异常public CoreTables syncTableByDBModel(CoreTables model) throws java.lang.Exception
CoreDbServicesyncTableByDBModel 在接口中 CoreDbServicemodel - 表模型实体实例java.lang.Exception - 出错会抛出异常public CoreTables syncTableByJsonModel(CoreTables model, java.lang.String bigFieldFilePath) throws java.lang.Exception
CoreDbServicesyncTableByJsonModel 在接口中 CoreDbServicemodel - 表模型实体实例bigFieldFilePath - 大字段文件路径,如果不存在大字段文件,此参数设置为nulljava.lang.Exception - 出错会抛出异常public void createTableFromJsonModel(CoreTables jsonModel) throws java.lang.Exception
CoreDbServicecreateTableFromJsonModel 在接口中 CoreDbServicejsonModel - 表模型实体实例java.lang.Exception - 出错会抛出异常public void insertModelFromJsonModel(CoreTables jsonModel) throws java.lang.Exception
CoreDbServiceinsertModelFromJsonModel 在接口中 CoreDbServicejsonModel - json序列化出来的模型java.lang.Exception - 出错会抛出异常public void syncModelFromJsonModel(CoreTables jsonModel, java.lang.String bigFieldFilePath) throws java.lang.Exception
CoreDbServicesyncModelFromJsonModel 在接口中 CoreDbServicejsonModel - json序列化出来的模型bigFieldFilePath - 大字段文件路径,如果不存在大字段,此字段设置为nulljava.lang.Exception - 出错会抛出异常public void syncModelFromJsonModel(java.io.File modelFile)
                            throws java.lang.Exception
CoreDbServicesyncModelFromJsonModel 在接口中 CoreDbServicemodelFile - 模型的文件对象java.lang.Exception - 出错会抛出异常public void syncModelFromJsonModel(java.net.URL url)
                            throws java.lang.Exception
CoreDbServicesyncModelFromJsonModel 在接口中 CoreDbServiceurl - 模型的文件路径java.lang.Exception - 出错会抛出异常public void syncModelIndexFromJsonModel(CoreTables table) throws java.lang.Exception
CoreDbServicesyncModelIndexFromJsonModel 在接口中 CoreDbServicetable - 表模型实体java.lang.Exception - 出错会抛出异常public void insertRowFromJsonModelRows(CoreTables jsonModel, java.lang.String bigfieldFilePath) throws java.lang.Exception
CoreDbServiceinsertRowFromJsonModelRows 在接口中 CoreDbServicejsonModel - 表模型实体实例bigfieldFilePath - 大字段文件路径,如果没有大字段文件,此参数设置为nulljava.lang.Exception - 出错会抛出异常public void insertOrUpdateRowFromJsonModelRows(CoreTables jsonModel, java.lang.String bigfieldFilePath) throws java.lang.Exception
CoreDbServiceinsertOrUpdateRowFromJsonModelRows 在接口中 CoreDbServicejsonModel - 表模型实体实例bigfieldFilePath - 大字段文件路径,如果没有大字段文件,此参数设置为nulljava.lang.Exception - 出错会抛出异常public void syncIndex(CoreTables tb) throws java.lang.Exception
CoreDbServicesyncIndex 在接口中 CoreDbServicetb - 表模型实体实例java.lang.Exception - 出错会抛出异常public java.lang.Boolean getInitSystem()
CoreDbServicegetInitSystem 在接口中 CoreDbServicepublic void setInitSystem(java.lang.Boolean isInit)
CoreDbServicesetInitSystem 在接口中 CoreDbServiceisInit - 是否初始化public Serializer getNewModelSerializer()
CoreDbServicegetNewModelSerializer 在接口中 CoreDbServicepublic java.util.List<java.lang.String> getAllTable(java.lang.String condition)
                                             throws freemarker.template.TemplateNotFoundException,
                                                    freemarker.template.MalformedTemplateNameException,
                                                    freemarker.core.ParseException,
                                                    java.io.IOException,
                                                    freemarker.template.TemplateException,
                                                    java.sql.SQLException
CoreDbServicegetAllTable 在接口中 CoreDbServicecondition - 过滤条件 只能使用 TABLE_NAME 来过滤 如 " AND TABLE_NAME='XXX'" 就是sql
                  中where后面的条件格式freemarker.template.TemplateNotFoundException - 模板没找到freemarker.template.MalformedTemplateNameException - 出错抛出异常freemarker.core.ParseException - sql语句发生错误java.io.IOException - 出错抛出异常freemarker.template.TemplateException - 模板错误java.sql.SQLException - 出错抛出数据库异常public java.util.List<CoreTables> getTableModelFromDataBaseStructure(java.lang.String condition) throws java.lang.Exception
CoreDbServicegetTableModelFromDataBaseStructure 在接口中 CoreDbServicecondition - 过滤条件 只能使用 TABLE_NAME 来过滤 如 " AND TABLE_NAME='XXX'" 就是sql
                  中where后面的条件格式java.lang.Exception - 出错会抛出异常public java.util.Map<java.lang.String,java.lang.String> getBigFieldColumnNames(java.util.List<CoreTablesColumn> columns)
CoreDbServicegetBigFieldColumnNames 在接口中 CoreDbServicecolumns - 表模型列实体Listpublic boolean beforeModifyColumnCheckBigFieldType(CoreTablesColumn oldColumn, CoreTablesColumn newColumn) throws java.lang.Exception
CoreDbServicebeforeModifyColumnCheckBigFieldType 在接口中 CoreDbServiceoldColumn - 旧的表模型的列实体实例newColumn - 新的表模型的列实体实例java.lang.Exception - 出错会抛出异常public void beforeModifyColumnCheck(CoreTablesColumn oldColumn, CoreTablesColumn newColumn) throws java.lang.Exception
CoreDbServicebeforeModifyColumnCheck 在接口中 CoreDbServiceoldColumn - 旧的表模型的列实体实例newColumn - 新的表模型的列实体实例java.lang.Exception - 出错会抛出异常