C# Class Raven.Database.Json.ScriptedJsonPatcher

Mostra file Open project: robashton/ravendb Class Usage Examples

Public Properties

Property Type Description
CreatedDocs IList
Debug List

Public Methods

Method Description
Apply ( RavenJObject document, Raven.Abstractions.Data.ScriptedPatchRequest patch, int size, string docId = null ) : RavenJObject
ScriptedJsonPatcher ( DocumentDatabase database = null ) : System
ToRavenJObject ( JsObject jsObject ) : RavenJObject

Protected Methods

Method Description
ConvertReturnValue ( JsObject jsObject ) : RavenJObject
CustomizeEngine ( JintEngine jintEngine ) : void
RemoveEngineCustomizations ( JintEngine jintEngine ) : void
ToJsObject ( IGlobal global, RavenJObject doc ) : JsObject
ValidateDocument ( JsonDocument newDocument ) : void

Private Methods

Method Description
AddScript ( JintEngine jintEngine, string ravenDatabaseJsonMapJs ) : void
ApplySingleScript ( RavenJObject doc, Raven.Abstractions.Data.ScriptedPatchRequest patch, int size, string docId ) : RavenJObject
CreateEngine ( Raven.Abstractions.Data.ScriptedPatchRequest patch ) : JintEngine
GetFromResources ( string resourceName ) : string
NormalizeLineEnding ( string script ) : string
OutputLog ( JintEngine engine ) : void
PutDocument ( string key, JsObject doc, JsObject meta ) : void
ToJsArray ( IGlobal global, RavenJArray array ) : JsArray
ToJsInstance ( IGlobal global, RavenJToken value ) : JsInstance
ToRavenJToken ( JsInstance v ) : RavenJToken

Method Details

Apply() public method

public Apply ( RavenJObject document, Raven.Abstractions.Data.ScriptedPatchRequest patch, int size, string docId = null ) : RavenJObject
document RavenJObject
patch Raven.Abstractions.Data.ScriptedPatchRequest
size int
docId string
return RavenJObject

ConvertReturnValue() protected method

protected ConvertReturnValue ( JsObject jsObject ) : RavenJObject
jsObject Jint.Native.JsObject
return RavenJObject

CustomizeEngine() protected method

protected CustomizeEngine ( JintEngine jintEngine ) : void
jintEngine Jint.JintEngine
return void

RemoveEngineCustomizations() protected method

protected RemoveEngineCustomizations ( JintEngine jintEngine ) : void
jintEngine Jint.JintEngine
return void

ScriptedJsonPatcher() public method

public ScriptedJsonPatcher ( DocumentDatabase database = null ) : System
database DocumentDatabase
return System

ToJsObject() protected static method

protected static ToJsObject ( IGlobal global, RavenJObject doc ) : JsObject
global IGlobal
doc RavenJObject
return Jint.Native.JsObject

ToRavenJObject() public static method

public static ToRavenJObject ( JsObject jsObject ) : RavenJObject
jsObject Jint.Native.JsObject
return RavenJObject

ValidateDocument() protected method

protected ValidateDocument ( JsonDocument newDocument ) : void
newDocument Raven.Abstractions.Data.JsonDocument
return void

Property Details

CreatedDocs public_oe property

public IList CreatedDocs
return IList

Debug public_oe property

public List Debug
return List