public class DataBaseDwzLogStoreImpl extends Object implements IDwzLogStore
IDwzLogStoreSEQ_NAME__DWZ_LOG_ID| 构造器和说明 |
|---|
DataBaseDwzLogStoreImpl(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
icu.easyj.core.sequence.ISequenceService sequenceService) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteOvertime()
删除超时的短链接数据
|
DwzLogEntity |
getByLongUrlForUpdate(String longUrl)
根据长链接,获取有效的短链接记录数据。
|
String |
getLongUrlByShortUrlCode(String shortUrlCode)
根据短链接码,获取长链接
|
Long |
getMaxId()
获取当前存储器中保存的短链接记录的最大ID值
|
DwzLogEntity |
save(String longUrl,
Date termOfValidity)
关联短链接码与长链接,并保存到store中
|
void |
update(DwzLogEntity dwzLog)
更新成功
|
int |
updateOvertime()
更新超时的短链接数据状态
|
public DataBaseDwzLogStoreImpl(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
icu.easyj.core.sequence.ISequenceService sequenceService)
@NonNull public DwzLogEntity save(@NonNull String longUrl, @Nullable Date termOfValidity)
IDwzLogStoresave 在接口中 IDwzLogStorelongUrl - 长链接termOfValidity - 有效期截止时间(为空表示永久有效)@Nullable public DwzLogEntity getByLongUrlForUpdate(@NonNull String longUrl)
IDwzLogStoregetByLongUrlForUpdate 在接口中 IDwzLogStorelongUrl - 长链接public void update(@NonNull
DwzLogEntity dwzLog)
IDwzLogStoreupdate 在接口中 IDwzLogStoredwzLog - 短链接记录@Nullable public String getLongUrlByShortUrlCode(@NonNull String shortUrlCode)
IDwzLogStoregetLongUrlByShortUrlCode 在接口中 IDwzLogStoreshortUrlCode - 短链接码@Nullable public Long getMaxId()
IDwzLogStoregetMaxId 在接口中 IDwzLogStorepublic int deleteOvertime()
IDwzLogStoredeleteOvertime 在接口中 IDwzLogStorepublic int updateOvertime()
IDwzLogStoreupdateOvertime 在接口中 IDwzLogStoreCopyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.