public class MongodbPersister<E extends Persistent> extends AbstractPersister<E>
AbstractPersister.Cache| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
_Logger
日志
|
static String |
DRIVEIT
控制实例id
|
static String |
ID
id属性
|
static String |
LASTMODIFIED
最后修改时间
|
protected MongodbPersisterFactory |
m_Factory
数据库
|
static short |
ORDERBY_ASC
升序
|
static short |
ORDERBY_DESC
降序
|
static String |
SERVERID
服务器id
|
static String |
VERSION
版本
|
m_Cache, m_Flusher, m_ForOwnerEnabled, m_IdGenerator, m_Listeners, m_Loader, m_Name, m_ReloadListener, m_VerifyNewIdTrys, m_Watcher| 构造器和说明 |
|---|
MongodbPersister(MongodbPersisterFactory factory,
cn.weforward.protocol.ext.ObjectMapper<E> mapper) |
MongodbPersister(MongodbPersisterFactory factory,
cn.weforward.protocol.ext.ObjectMapper<E> mapper,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.mongodb.client.MongoCollection<org.bson.Document> |
getCollection() |
protected boolean |
innerDelete(String id) |
protected ObjectWithVersion<E> |
innerLoad(String id) |
protected String |
innerNew(E object) |
protected String |
innerSave(E object) |
protected String |
innerSave(E object,
String oldVersion) |
cn.weforward.common.ResultPage<String> |
searchOfId(Condition condition,
OrderBy orderBy) |
cn.weforward.common.ResultPage<String> |
searchOfId(Date begin,
Date end) |
Iterator<String> |
searchOfId(String serverId,
Date begin,
Date end) |
cn.weforward.common.ResultPage<String> |
searchRangeOfId(String from,
String to) |
Iterator<String> |
searchRangeOfId(String serverId,
String from,
String to) |
void |
setFlusher(Flusher flusher) |
cn.weforward.common.ResultPage<String> |
startsWithOfId(String prefix) |
addListener, cleanup, equals, fireChangedEvent, fireChangedToListener, flush, get, get, getCache, getFlusher, getIdGenerator, getName, getNewer, getNewId, getNewId, getOfCache, getPersisterId, getVerifyNewIdTrys, getVersion, hold, isDirty, isForOwnerEnabled, isOwner, isReloadEnabled, persist, persist, putOfCache, reload, remove, remove, removeListener, removeOfCache, search, search, search, search, searchOfId, searchRange, searchRange, setForOwnerEnabled, setNullTimeout, setPersisterId, setReachable, setReloadEnabled, setTimeout, setVerifyNewIdTrys, setWatcher, startsWith, toString, updateprotected static final org.slf4j.Logger _Logger
protected MongodbPersisterFactory m_Factory
public static final short ORDERBY_ASC
public static final short ORDERBY_DESC
public MongodbPersister(MongodbPersisterFactory factory, cn.weforward.protocol.ext.ObjectMapper<E> mapper)
public MongodbPersister(MongodbPersisterFactory factory, cn.weforward.protocol.ext.ObjectMapper<E> mapper, String name)
public void setFlusher(Flusher flusher)
setFlusher 在类中 AbstractPersister<E extends Persistent>public cn.weforward.common.ResultPage<String> searchRangeOfId(String from, String to)
public cn.weforward.common.ResultPage<String> searchOfId(Condition condition, OrderBy orderBy)
protected ObjectWithVersion<E> innerLoad(String id)
innerLoad 在类中 AbstractPersister<E extends Persistent>protected String innerSave(E object)
innerSave 在类中 AbstractPersister<E extends Persistent>protected String innerSave(E object, String oldVersion)
innerSave 在类中 AbstractPersister<E extends Persistent>protected String innerNew(E object)
innerNew 在类中 AbstractPersister<E extends Persistent>protected boolean innerDelete(String id)
innerDelete 在类中 AbstractPersister<E extends Persistent>public com.mongodb.client.MongoCollection<org.bson.Document> getCollection()
Copyright © 2022. All rights reserved.