public class EntityToJson
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
EntityToJson.DisposeCachedJsonDocs |
Modifier and Type | Field and Description |
---|---|
protected java.util.IdentityHashMap<java.lang.Object,RavenJObject> |
cachedJsonDocs |
Constructor and Description |
---|
EntityToJson(IDocumentStore documentStore,
DocumentSessionListeners listeners) |
Modifier and Type | Method and Description |
---|---|
RavenJObject |
convertEntityToJson(java.lang.String key,
java.lang.Object entity,
RavenJObject metadata) |
java.lang.AutoCloseable |
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.
|
java.util.IdentityHashMap<java.lang.Object,RavenJObject> |
getCachedJsonDocs() |
DocumentSessionListeners |
getListeners() |
java.util.IdentityHashMap<java.lang.Object,java.util.Map<java.lang.String,RavenJToken>> |
getMissingDictionary() |
void |
setMissingDictionary(java.util.IdentityHashMap<java.lang.Object,java.util.Map<java.lang.String,RavenJToken>> missingDictionary) |
protected java.util.IdentityHashMap<java.lang.Object,RavenJObject> cachedJsonDocs
public EntityToJson(IDocumentStore documentStore, DocumentSessionListeners listeners)
public java.util.IdentityHashMap<java.lang.Object,RavenJObject> getCachedJsonDocs()
public java.util.IdentityHashMap<java.lang.Object,java.util.Map<java.lang.String,RavenJToken>> getMissingDictionary()
public void setMissingDictionary(java.util.IdentityHashMap<java.lang.Object,java.util.Map<java.lang.String,RavenJToken>> missingDictionary)
public DocumentSessionListeners getListeners()
public RavenJObject convertEntityToJson(java.lang.String key, java.lang.Object entity, RavenJObject metadata)
public java.lang.AutoCloseable entitiesToJsonCachingScope()
Copyright © 2014. All Rights Reserved.