@Component public class UserParamCache extends Object
| 构造器和说明 |
|---|
UserParamCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(Object userId)
根据用户ID,删除所有个性化参数
|
void |
delete(Object userId,
String name)
根据用户ID和Key,删除所有个性化参数
|
Boolean |
getBoolean(Object userId,
String key)
获取Boolean类型的值
|
String |
getDate(Object userId,
String key)
获取日期
|
String |
getDateTime(Object userId,
String key)
获取日期时间
|
Double |
getDouble(Object userId,
String key)
获取Double类型的值
|
Float |
getFloat(Object userId,
String key)
获取Float类型的值
|
Integer |
getInt(Object userId,
String key)
获取Integer类型的值
|
com.alibaba.fastjson.JSONObject |
getJson(Object userId,
String key)
获取JSONObject类型的值
|
List<Object> |
getList(Object userId,
String key)
获取List类型的值
|
Map<String,Object> |
getMap(Object userId,
String key)
获取Map类型的值
|
Object |
getObject(Object userId,
String name)
获取Object类型的值
|
String |
getString(Object userId,
String key)
获取String类型的值
|
void |
reload()
初始化缓存
|
void |
reload(Object userId) |
void |
update(Object userId,
String name,
Object value)
更新缓存
|
@Comment(value="\u83b7\u53d6Object\u7c7b\u578b\u7684\u503c") public Object getObject(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String name) throws SQLException
userId - 用户IDname - 参数名SQLException@Comment(value="\u83b7\u53d6String\u7c7b\u578b\u7684\u503c") public String getString(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6Integer\u7c7b\u578b\u7684\u503c") public Integer getInt(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6Double\u7c7b\u578b\u7684\u503c") public Double getDouble(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6Float\u7c7b\u578b\u7684\u503c") public Float getFloat(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6\u65e5\u671f") public String getDate(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6\u65e5\u671f\u65f6\u95f4") public String getDateTime(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6JSONObject\u7c7b\u578b\u7684\u503c")
public com.alibaba.fastjson.JSONObject getJson(@Comment(value="\u7528\u6237ID")
Object userId,
@Comment(value="\u53c2\u6570\u540d")
String key)
throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6Map\u7c7b\u578b\u7684\u503c") public Map<String,Object> getMap(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6List\u7c7b\u578b\u7684\u503c") public List<Object> getList(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u83b7\u53d6Boolean\u7c7b\u578b\u7684\u503c") public Boolean getBoolean(@Comment(value="\u7528\u6237ID") Object userId, @Comment(value="\u53c2\u6570\u540d") String key) throws SQLException
userId - 用户IDkey - 参数名SQLException@Comment(value="\u6839\u636e\u7528\u6237ID\uff0c\u5220\u9664\u6240\u6709\u4e2a\u6027\u5316\u53c2\u6570")
public void delete(@Comment(value="\u7528\u6237ID")
Object userId)
throws SQLException
userId - 用户IDSQLException@Comment(value="\u6839\u636e\u7528\u6237ID\u548cKey\uff0c\u5220\u9664\u6240\u6709\u4e2a\u6027\u5316\u53c2\u6570")
public void delete(@Comment(value="\u7528\u6237ID")
Object userId,
@Comment(value="\u53c2\u6570\u540d")
String name)
throws SQLException
userId - 用户IDname - 参数名SQLException@Comment(value="\u521d\u59cb\u5316\u7f13\u5b58")
public void reload()
throws SQLException
SQLException@Comment(value="\u521d\u59cb\u5316\u7f13\u5b58")
public void reload(@Comment(value="\u7528\u6237ID")
Object userId)
throws SQLException
userId - SQLException@Comment(value="\u66f4\u65b0\u7f13\u5b58")
public void update(@Comment(value="\u7528\u6237ID")
Object userId,
@Comment(value="\u53c2\u6570\u540d")
String name,
@Comment(value="\u53c2\u6570\u503c")
Object value)
throws SQLException
userId - name - 参数名value - 参数值SQLException - 参数描述Copyright © 2025. All rights reserved.