@CacheConfig(cacheNames="tableCache") @Service(value="CoreSyslogService") public class CoreSyslogServiceImpl extends BaseServiceImpl<CoreSyslog> implements CoreSyslogService
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) CoreSyslogMapper |
coreSyslogMapper |
(专用程序包) CoreTablesMapper |
coreTablesMapper |
构造器和说明 |
---|
CoreSyslogServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreSyslog |
addEntity(CoreSyslog coreSysLog)
新增实体并返回实体
|
java.util.List<CoreSyslog> |
findList(java.util.Map<java.lang.String,java.lang.Object> params)
根据条件查询实体 包含了分页等各种参数
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
findTableModel(java.lang.String tablename)
根据表名查询表结构
|
java.lang.String |
findTableName(java.lang.String tablename)
查询表的中文名
|
add, confirm, findAll, getEntity, modify, removeById, removeByIds, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, getEntity, modify, removeById, removeByIds, startProcess, startProcess
@Autowired CoreSyslogMapper coreSyslogMapper
@Autowired CoreTablesMapper coreTablesMapper
@Cacheable(key="#tablename+\'findTableModel\'") @Transactional(propagation=REQUIRED) public java.util.List<java.util.Map<java.lang.String,java.lang.String>> findTableModel(java.lang.String tablename)
CoreSyslogService
findTableModel
在接口中 CoreSyslogService
tablename
- 表名@Cacheable(key="#tablename+\'findTableName\'") @Transactional(propagation=REQUIRED) public java.lang.String findTableName(java.lang.String tablename)
CoreSyslogService
findTableName
在接口中 CoreSyslogService
tablename
- 表名public CoreSyslog addEntity(CoreSyslog coreSysLog) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreSyslog>
addEntity
在类中 BaseServiceImpl<CoreSyslog>
coreSysLog
- 实体对象java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreSyslog> findList(java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
BaseService
findList
在接口中 BaseService<CoreSyslog>
findList
在类中 BaseServiceImpl<CoreSyslog>
params
- 参数列表java.lang.Exception
- 出错会抛出异常