public class MetadataColumnDaoImpl extends AbstractHibernateDao<CtpMetadataColumn> implements MetadataColumnDao
Title: 元数据字段信息Dao类
Description: 代码描述
Copyright: Copyright (c) 2015
Company: seeyon.com
限定符和类型 | 字段和说明 |
---|---|
static String |
CTP_METADATA_COLUMN_ALIAS |
entityClass
构造器和说明 |
---|
MetadataColumnDaoImpl() |
限定符和类型 | 方法和说明 |
---|---|
Long |
createCtpMetadataColumn(CtpMetadataColumn ctpMetadataColumn)
新建基础数据字段信息
|
void |
deleteColumn(List<Long> idList)
删除字段信息(逻辑删除)。
|
List<CtpMetadataColumn> |
findAll() |
List<CtpMetadataColumn> |
findCtpMetadataColumnList(FlipInfo fi,
Map<String,Object> sqlParams)
获取元数据字段的列表信息,根据查询条件参数
|
List<CtpMetadataColumn> |
findCtpMetadataColumnListByTableId(FlipInfo fi,
Long tableId)
根据基础表ID,获取其对应的字段列表信息(分页)
|
List<CtpMetadataColumn> |
findCtpMetadataColumnListByTableId(Long tableId)
根据基础表ID,获取其对应的字段列表信息
|
CtpMetadataColumn |
getById(Long id)
根据Id获取元数据字段信息
|
Collection<CtpMetadataColumn> |
getColumns(Long tableId)
获取指定Table下的所有字段列表。
|
Integer |
getMaxColumnSort(Long tableId)
根据属性表Id,获取属性表对应字段中最大的排序号
|
void |
updateCtpMetadataColumn(CtpMetadataColumn ctpMetadataColumn)
保存基础数据字段信息
|
void |
updateMetadataColumnSort(Integer sort)
根据插入的排序号,修改后面字段的排序号
|
closeSessionIfNecessary, getSession, getSession, releaseSession
bulkUpdate, bulkUpdate, checkDaoConfig, convertHibernateAccessException, count, count, count, createHibernateTemplate, delete, delete, executeCriteria, executeCriteria, executeUniqueCriteria, find, find, find, find, find, find, findBy, findByLike, findSimpleObjects, findSimpleObjects, findUnique, findUnique, findUniqueBy, findVarargs, findWithCount, findWithCount, get, getAll, getBatchSize, getCountByCriteria, getEntityClass, getHibernateTemplate, getSessionFactory, getSimpleObject, save, savePatchAll, setHibernateTemplate, setParameters, setSessionFactory, sortCriteria, update, updatePatchAll
public CtpMetadataColumn getById(Long id) throws BusinessException
MetadataColumnDao
getById
在接口中 MetadataColumnDao
id
- 字段信息IdBusinessException
public Integer getMaxColumnSort(Long tableId) throws BusinessException
MetadataColumnDao
getMaxColumnSort
在接口中 MetadataColumnDao
tableId
- 属性表IdBusinessException
public List<CtpMetadataColumn> findCtpMetadataColumnListByTableId(Long tableId) throws BusinessException
MetadataColumnDao
findCtpMetadataColumnListByTableId
在接口中 MetadataColumnDao
tableId
- 基础表IdBusinessException
public List<CtpMetadataColumn> findCtpMetadataColumnListByTableId(FlipInfo fi, Long tableId) throws BusinessException
MetadataColumnDao
findCtpMetadataColumnListByTableId
在接口中 MetadataColumnDao
fi
- 分页对象tableId
- 基础表IdBusinessException
public List<CtpMetadataColumn> findCtpMetadataColumnList(FlipInfo fi, Map<String,Object> sqlParams) throws BusinessException
MetadataColumnDao
findCtpMetadataColumnList
在接口中 MetadataColumnDao
fi
- 分页对象(fi对象为null,则不分页)sqlParams
- 条件参数BusinessException
public Long createCtpMetadataColumn(CtpMetadataColumn ctpMetadataColumn) throws BusinessException
MetadataColumnDao
createCtpMetadataColumn
在接口中 MetadataColumnDao
ctpMetadataColumn
- 字段信息BusinessException
public void updateCtpMetadataColumn(CtpMetadataColumn ctpMetadataColumn) throws BusinessException
MetadataColumnDao
updateCtpMetadataColumn
在接口中 MetadataColumnDao
ctpMetadataColumn
- 字段信息BusinessException
public void updateMetadataColumnSort(Integer sort) throws BusinessException
MetadataColumnDao
updateMetadataColumnSort
在接口中 MetadataColumnDao
sort
- 排序号BusinessException
public void deleteColumn(List<Long> idList) throws BusinessException
MetadataColumnDao
deleteColumn
在接口中 MetadataColumnDao
idList
- Id集合信息BusinessException
public Collection<CtpMetadataColumn> getColumns(Long tableId) throws BusinessException
MetadataColumnDao
getColumns
在接口中 MetadataColumnDao
tableId
- CtpMetaDataTable的Id。BusinessException
public List<CtpMetadataColumn> findAll()
findAll
在接口中 MetadataColumnDao
Copyright © 2016–2017. All rights reserved.