public class EntityToJson extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
EntityToJson.DisposeCachedJsonDocs |
Modifier and Type | Field and Description |
---|---|
protected IdentityHashMap<Object,RavenJObject> |
cachedJsonDocs |
Constructor and Description |
---|
EntityToJson(IDocumentStore documentStore,
DocumentSessionListeners listeners) |
Modifier and Type | Method and Description |
---|---|
RavenJObject |
convertEntityToJson(String key,
Object entity,
RavenJObject metadata) |
CleanCloseable |
entitiesToJsonCachingScope()
All calls to convert an entity to a json object would be cache
This is used inside the SaveChanges() action, where we need to access the entities json
in several disparate places.
|
IdentityHashMap<Object,RavenJObject> |
getCachedJsonDocs() |
DocumentSessionListeners |
getListeners() |
IdentityHashMap<Object,Map<String,RavenJToken>> |
getMissingDictionary() |
protected IdentityHashMap<Object,RavenJObject> cachedJsonDocs
public EntityToJson(IDocumentStore documentStore, DocumentSessionListeners listeners)
public IdentityHashMap<Object,RavenJObject> getCachedJsonDocs()
public IdentityHashMap<Object,Map<String,RavenJToken>> getMissingDictionary()
public DocumentSessionListeners getListeners()
public RavenJObject convertEntityToJson(String key, Object entity, RavenJObject metadata)
public CleanCloseable entitiesToJsonCachingScope()
Copyright © 2016. All Rights Reserved.