public ArangoUtil(VPack vpacker, VPack vpackerNull, VPackParser vpackParser) : base() { this.vpacker = vpacker; this.vpackerNull = vpackerNull; this.vpackParser = vpackParser; }
public ArangoExecutorSync(Communication <Response , ConnectionSync> communication, VPack vpacker, VPack vpackerNull, VPackParser vpackParser, DocumentCache documentCache, CollectionCache collectionCache) : base(communication, vpacker, vpackerNull, vpackParser, documentCache, collectionCache ) { }
protected internal ArangoDatabase(Communication <Response, ConnectionSync > communication, VPack vpacker, VPack vpackerNull, VPackParser vpackParser, DocumentCache documentCache, CollectionCache collectionCache, string name ) : base(new ArangoExecutorSync(communication, vpacker, vpackerNull , vpackParser, documentCache, collectionCache), name) { }
public Builder() : base() { this.vpackBuilder = new VPack.Builder(); this.collectionCache = new CollectionCache(); this.vpackParser = new VPackParser(); VPackConfigure.configure(this.vpackBuilder, this.vpackParser , this.collectionCache); this.loadProperties(typeof(ArangoDB).getResourceAsStream (DEFAULT_PROPERTY_FILE)); }
public _DBAccess_196(ArangoDB _enclosing, Communication <Response, ConnectionSync > cacheCom, VPack vpackNull, VPack vpack, VPackParser vpackParser) { this._enclosing = _enclosing; this.cacheCom = cacheCom; this.vpackNull = vpackNull; this.vpack = vpack; this.vpackParser = vpackParser; }
protected internal ArangoExecutor(Communication <R, C> communication, VPack vpacker, VPack vpackerNull, VPackParser vpackParser, DocumentCache documentCache, CollectionCache collectionCache) : base() { this.Communication = communication; this.DocumentCache = documentCache; this.CollectionCache = collectionCache; Util = new ArangoUtil(vpacker, vpackerNull, vpackParser); }
public ArangoDB(CommunicationSync.Builder commBuilder , VPack vpack, VPack vpackNull, VPackParser vpackParser, CollectionCache collectionCache) : base(new ArangoExecutorSync(commBuilder.build(vpack, collectionCache ), vpack, vpackNull, vpackParser, new DocumentCache(), collectionCache )) { Communication <Response , ConnectionSync> cacheCom = commBuilder.build (vpack, collectionCache); collectionCache.init(new _DBAccess_196(this, cacheCom, vpackNull, vpack, vpackParser )); }
public static void configure(VPack.Builder builder, VPackParser vpackParser, CollectionCache cache) { builder.fieldNamingStrategy(new _VPackFieldNamingStrategy_64()); builder.registerDeserializer(ID, typeof(string), new _VPackDeserializer_74(cache)); vpackParser.registerDeserializer(ID, ValueType.CUSTOM, new _VPackJsonDeserializer_97(cache)); builder.registerSerializer(typeof(Request ), VPackSerializers.REQUEST); builder.registerSerializer(typeof(AuthenticationRequest ), VPackSerializers.AUTH_REQUEST); builder.registerSerializer(typeof(CollectionType ), VPackSerializers.COLLECTION_TYPE); builder.registerSerializer(typeof(BaseDocument ), VPackSerializers.BASE_DOCUMENT); builder.registerSerializer(typeof(BaseEdgeDocument ), VPackSerializers.BASE_EDGE_DOCUMENT); builder.registerSerializer(typeof(TraversalOptions.Order ), VPackSerializers.TRAVERSAL_ORDER); builder.registerSerializer(typeof(LogLevel ), VPackSerializers.LOG_LEVEL); builder.registerDeserializer(typeof(Response ), VPackDeserializers.RESPONSE); builder.registerDeserializer(typeof(CollectionType ), VPackDeserializers.COLLECTION_TYPE); builder.registerDeserializer(typeof(CollectionStatus ), VPackDeserializers.COLLECTION_STATUS); builder.registerDeserializer(typeof(BaseDocument ), VPackDeserializers.BASE_DOCUMENT); builder.registerDeserializer(typeof(BaseEdgeDocument ), VPackDeserializers.BASE_EDGE_DOCUMENT); builder.registerDeserializer(QueryEntity.PROPERTY_STARTED, typeof(System.DateTime), VPackDeserializers. DATE_STRING); builder.registerDeserializer(typeof(LogLevel ), VPackDeserializers.LOG_LEVEL); }