@CacheConfig(cacheNames="tableCache") @Transactional(rollbackFor=java.lang.Exception.class) @Service public class CoreTablesColumnServiceImpl extends BaseServiceImpl<CoreTablesColumn> implements CoreTablesColumnService
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) CoreDbService |
coreDbService |
(专用程序包) CoreDictionaryService |
coreDicitionaryService |
(专用程序包) CoreTablesColumnMapper |
coreTablesColumnMapper |
(专用程序包) CoreTablesMapper |
coreTablesMapper |
| 构造器和说明 |
|---|
CoreTablesColumnServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
CoreTablesColumn |
addEntity(CoreTablesColumn entity)
新增实体并返回实体
|
java.util.List<CoreTablesColumn> |
findColumnByTabsname(java.lang.String tablesName)
根据表名查询列
|
java.util.List<BaseKeyValue> |
findColumnDataType(java.lang.String zdId,
boolean bFilterPK)
从数据字典中获取数据库字段的数据类型
|
java.util.List<BaseKeyValue> |
findColumnKeyValuesByTabId(java.lang.String tbId)
获取模型列的key-value类型的
|
java.util.List<BaseKeyValue> |
findColumnKeyValuesFilterPkByTabId(java.lang.String tbId)
获取模型列的key-value类型的并且将主键过滤
|
java.util.Map<java.lang.String,CoreTables> |
findColumnsByRwids(java.lang.String rwids)
通过多个rwid查询对应的列,是表模型的rwid
|
java.util.List<CoreTablesColumn> |
findColumnsByTableId(java.lang.String tbId)
根据表id获取对应的列
|
java.lang.Boolean |
isExistsColumnName(java.lang.String rwid,
java.lang.String tableId,
java.lang.String columnName)
判断列名是否已经存在
|
int |
modify(CoreTablesColumn newColumn)
更新实体
|
int |
modifyFromSyncColumn(CoreTablesColumn column)
同步表结构时修改字段状态
|
int |
removeByIds(java.util.List<java.lang.String> ids)
删除多个实体
|
add, confirm, findAll, findList, getEntity, removeById, saveJdbc, startProcess, startProcessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, confirm, findAll, findList, getEntity, removeById, startProcess, startProcess@Autowired CoreTablesColumnMapper coreTablesColumnMapper
@Autowired CoreTablesMapper coreTablesMapper
@Autowired CoreDbService coreDbService
@Autowired CoreDictionaryService coreDicitionaryService
@CacheEvict(allEntries=true) public CoreTablesColumn addEntity(CoreTablesColumn entity) throws java.lang.Exception
BaseServiceaddEntity 在接口中 BaseService<CoreTablesColumn>addEntity 在类中 BaseServiceImpl<CoreTablesColumn>entity - 实体对象java.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true)
public int removeByIds(java.util.List<java.lang.String> ids)
throws java.lang.Exception
BaseServiceremoveByIds 在接口中 BaseService<CoreTablesColumn>removeByIds 在类中 BaseServiceImpl<CoreTablesColumn>ids - 实体的主键Listjava.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true) public int modify(CoreTablesColumn newColumn) throws java.lang.Exception
BaseServicemodify 在接口中 BaseService<CoreTablesColumn>modify 在类中 BaseServiceImpl<CoreTablesColumn>newColumn - 实体对象java.lang.Exception - 出错会抛出异常public int modifyFromSyncColumn(CoreTablesColumn column) throws java.lang.Exception
CoreTablesColumnServicemodifyFromSyncColumn 在接口中 CoreTablesColumnServicecolumn - 表模型约束实体实例java.lang.Exception - 出错会抛出异常public java.util.List<BaseKeyValue> findColumnKeyValuesByTabId(java.lang.String tbId)
CoreTablesColumnServicefindColumnKeyValuesByTabId 在接口中 CoreTablesColumnServicetbId - 表模型rwid
表模型IDpublic java.util.List<BaseKeyValue> findColumnKeyValuesFilterPkByTabId(java.lang.String tbId) throws java.lang.Exception
CoreTablesColumnServicefindColumnKeyValuesFilterPkByTabId 在接口中 CoreTablesColumnServicetbId - 表模型rwid
表模型IDjava.lang.Exception - 出错会抛出异常public java.util.List<BaseKeyValue> findColumnDataType(java.lang.String zdId, boolean bFilterPK) throws java.lang.Exception
CoreTablesColumnServicefindColumnDataType 在接口中 CoreTablesColumnServicezdId - 数据字典idbFilterPK - 是否过来主键 :true 过滤主键java.lang.Exception - 出错会抛出异常public java.lang.Boolean isExistsColumnName(java.lang.String rwid,
java.lang.String tableId,
java.lang.String columnName)
throws java.lang.Exception
CoreTablesColumnServiceisExistsColumnName 在接口中 CoreTablesColumnServicerwid - 主键
不为空时过滤该列tableId - 指定查找的表columnName - 列名java.lang.Exception - 出错会抛出异常public java.util.List<CoreTablesColumn> findColumnByTabsname(java.lang.String tablesName)
CoreTablesColumnServicefindColumnByTabsname 在接口中 CoreTablesColumnServicetablesName - 表模型表编号public java.util.Map<java.lang.String,CoreTables> findColumnsByRwids(java.lang.String rwids)
CoreTablesColumnServicefindColumnsByRwids 在接口中 CoreTablesColumnServicerwids - 表模型idspublic java.util.List<CoreTablesColumn> findColumnsByTableId(java.lang.String tbId) throws java.lang.Exception
CoreTablesColumnServicefindColumnsByTableId 在接口中 CoreTablesColumnServicetbId - 表模型Idjava.lang.Exception - 出错会抛出异常