public class MicroservicePersister<E extends Persistent> extends AbstractPersister<E>
AbstractPersister.Cache| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DRIVEIT
控制实例id
|
static String |
ID
id属性
|
static String |
LASTMODIFIED
最后修改时间
|
protected String |
m_Collection |
protected MicroservicePersisterFactory |
m_Factory |
protected cn.weforward.protocol.ext.ObjectMapper<E> |
m_Mapper |
static String |
SERVERID
服务器id
|
static String |
VERSION
版本
|
_Logger, m_Cache, m_Flusher, m_ForOwnerEnabled, m_IdGenerator, m_Listeners, m_Name, m_ReloadEnabled, m_VerifyNewIdTrys| 限定符 | 构造器和说明 |
|---|---|
protected |
MicroservicePersister(MicroservicePersisterFactory factory,
cn.weforward.protocol.ext.ObjectMapper<E> mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getCollectionName() |
protected boolean |
innerDelete(String id)
删除对象
|
protected ObjectWithVersion<E> |
innerLoad(String id)
装入对象
|
protected String |
innerNew(E object)
新增的对象(用于持久器在对象未刷写前能进行查询)
|
protected String |
innerSave(E object)
保存对象状态
|
cn.weforward.common.ResultPage<String> |
searchOfId(Condition condition,
OrderBy orderBy)
条件查询
|
cn.weforward.common.ResultPage<String> |
searchOfId(Date begin,
Date end)
查找在指定时间段内变化(持久化)过的对象 (begin,end]
|
Iterator<String> |
searchOfId(String serverId,
Date begin,
Date end)
查找在指定时间段内变化(持久化)过的对象
|
cn.weforward.common.ResultPage<String> |
searchRangeOfId(String from,
String to)
查找ID在指定区间内的对象,id>=from and id<=to
|
Iterator<String> |
searchRangeOfId(String serverId,
String from,
String to)
查找ID在指定区间内的对象,id>=from and id<=to
|
cn.weforward.common.ResultPage<String> |
startsWithOfId(String prefix)
查找ID为指定前缀的对象
|
addListener, cleanup, equals, flush, get, get, getCache, getFlusher, getIdGenerator, getName, getNewId, getNewId, getOfCache, getPersisterId, getVerifyNewIdTrys, getVersion, hold, innerSave, isDirty, isForOwnerEnabled, isOwner, isReloadEnabled, persist, persist, putOfCache, remove, remove, removeListener, removeOfCache, search, search, search, search, searchOfId, searchRange, searchRange, setFlusher, setForOwnerEnabled, setPersisterId, setReachable, setReloadEnabled, setVerifyNewIdTrys, startsWith, toString, updateprotected MicroservicePersisterFactory m_Factory
protected cn.weforward.protocol.ext.ObjectMapper<E extends Persistent> m_Mapper
protected String m_Collection
protected MicroservicePersister(MicroservicePersisterFactory factory, cn.weforward.protocol.ext.ObjectMapper<E> mapper)
protected String getCollectionName()
protected String innerSave(E object)
AbstractPersisterinnerSave 在类中 AbstractPersister<E extends Persistent>object - 对象protected String innerNew(E object)
AbstractPersisterinnerNew 在类中 AbstractPersister<E extends Persistent>object - 新增的对象protected boolean innerDelete(String id)
AbstractPersisterinnerDelete 在类中 AbstractPersister<E extends Persistent>id - 对象IDprotected ObjectWithVersion<E> innerLoad(String id)
AbstractPersisterinnerLoad 在类中 AbstractPersister<E extends Persistent>id - 对象IDpublic cn.weforward.common.ResultPage<String> startsWithOfId(String prefix)
Persisterprefix - ID前缀public cn.weforward.common.ResultPage<String> searchOfId(Date begin, Date end)
Persisterbegin - 开始时间,若=null则不限制开始时间end - 结束时间,若=null则为当前时间public cn.weforward.common.ResultPage<String> searchRangeOfId(String from, String to)
Persisterfrom - ID开始点,若为null则不限制开始(但to不能为null)to - ID结束点,若为null则不限制结束(但from不能为null)public Iterator<String> searchOfId(String serverId, Date begin, Date end)
PersisterserverId - 服务器标识(1~255)begin - 开始时间,若=null则不限制开始时间end - 结束时间,若=null则为当前时间public Iterator<String> searchRangeOfId(String serverId, String from, String to)
PersisterserverId - 服务器标识from - ID开始点,若为null则不限制开始(但to不能为null)to - ID结束点,若为null则不限制结束(但from不能为null)public cn.weforward.common.ResultPage<String> searchOfId(Condition condition, OrderBy orderBy)
Persistercondition - 条件 ConditionUtilorderBy - 排序 OrderByUtilCopyright © 2021. All rights reserved.