@CacheConfig(cacheNames="configCache") @Service @Transactional(rollbackFor=java.lang.Exception.class) public class CoreVersionServiceImpl extends BaseServiceImpl<CoreVersion> implements CoreVersionService
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) CoreDbService |
coreDbService |
(专用程序包) CoreVersionMapper |
coreVersionMapper |
static java.lang.String |
PACK_FILE_EXT
压缩包扩展名
|
static java.lang.String |
UPDATE_PACK_FUNCTION_DIR
更新包中功能目录
|
static java.lang.String |
UPDATE_PACK_WEBXML_DIR
更新包中的webxml
|
| 构造器和说明 |
|---|
CoreVersionServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
CoreVersion |
addEntity(CoreVersion entity)
新增实体并返回实体
|
void |
backupSourceFiles(java.lang.String updateRootDir,
java.lang.String backupRootDir)
备份需要更新的文件
|
CoreVersion |
findCurVersion(java.util.Map<java.lang.String,java.lang.Object> params)
查询最新的系统版本
|
java.util.List<java.lang.String> |
findProject()
查询更新项目名称,不包涵平台所属
|
java.util.List<CoreVersion> |
findVersion(java.util.Map<java.lang.String,java.lang.Object> params)
通过查询版本信息
|
java.lang.String |
getBackupRootDir(java.util.Date date)
获取备份文件目录
|
java.lang.String |
getBackupRootDirName(java.lang.String backupRootDir)
获取备份目录名
|
int |
modify(CoreVersion entity)
更新实体
|
void |
packBackupDirFiles(java.lang.String backupRootDir)
压缩备份文件
|
int |
removeById(java.lang.String id)
删除实体
|
int |
removeByIds(java.util.List<java.lang.String> ids)
删除多个实体
|
CoreVersion |
startUpdate(java.lang.String id)
开始更新
|
add, confirm, findAll, findList, getEntity, saveJdbc, startProcess, startProcessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, confirm, findAll, findList, getEntity, startProcess, startProcesspublic static final java.lang.String UPDATE_PACK_WEBXML_DIR
public static final java.lang.String UPDATE_PACK_FUNCTION_DIR
public static final java.lang.String PACK_FILE_EXT
@Autowired CoreVersionMapper coreVersionMapper
@Autowired CoreDbService coreDbService
public CoreVersion addEntity(CoreVersion entity) throws java.lang.Exception
BaseServiceaddEntity 在接口中 BaseService<CoreVersion>addEntity 在类中 BaseServiceImpl<CoreVersion>entity - 实体对象java.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true,
beforeInvocation=true)
public int removeById(java.lang.String id)
throws java.lang.Exception
BaseServiceremoveById 在接口中 BaseService<CoreVersion>removeById 在类中 BaseServiceImpl<CoreVersion>id - 实体idjava.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true,
beforeInvocation=true)
public int modify(CoreVersion entity)
throws java.lang.Exception
BaseServicemodify 在接口中 BaseService<CoreVersion>modify 在类中 BaseServiceImpl<CoreVersion>entity - 实体对象java.lang.Exception - 出错会抛出异常public int removeByIds(java.util.List<java.lang.String> ids)
throws java.lang.Exception
BaseServiceremoveByIds 在接口中 BaseService<CoreVersion>removeByIds 在类中 BaseServiceImpl<CoreVersion>ids - 实体的主键Listjava.lang.Exception - 出错会抛出异常@CacheEvict(allEntries=true,
beforeInvocation=true)
public CoreVersion startUpdate(java.lang.String id)
throws java.lang.Exception
CoreVersionServicestartUpdate 在接口中 CoreVersionServiceid - 版本Idjava.lang.Exception - 出错会抛出异常public void backupSourceFiles(java.lang.String updateRootDir,
java.lang.String backupRootDir)
throws java.lang.Exception
CoreVersionServicebackupSourceFiles 在接口中 CoreVersionServiceupdateRootDir - 更新目录backupRootDir - 备份文件存放的目录java.lang.Exception - 出错会抛出异常public void packBackupDirFiles(java.lang.String backupRootDir)
throws java.lang.Exception
CoreVersionServicepackBackupDirFiles 在接口中 CoreVersionServicebackupRootDir - 备份文件存放目录java.lang.Exception - 出错会抛出异常public java.lang.String getBackupRootDir(java.util.Date date)
throws java.lang.Exception
CoreVersionServicegetBackupRootDir 在接口中 CoreVersionServicedate - 获取日期yyyyMMddHHmmSS作为备份目录的后缀java.lang.Exception - 出错会抛出异常public java.lang.String getBackupRootDirName(java.lang.String backupRootDir)
throws java.lang.Exception
CoreVersionServicegetBackupRootDirName 在接口中 CoreVersionServicebackupRootDir - 备份的路径java.lang.Exception - 出错会抛出异常public java.util.List<CoreVersion> findVersion(java.util.Map<java.lang.String,java.lang.Object> params)
CoreVersionServicefindVersion 在接口中 CoreVersionServiceparams - 参数Mappublic java.util.List<java.lang.String> findProject()
CoreVersionServicefindProject 在接口中 CoreVersionServicepublic CoreVersion findCurVersion(java.util.Map<java.lang.String,java.lang.Object> params)
CoreVersionServicefindCurVersion 在接口中 CoreVersionServiceparams - 参数Map