Example #1
0
 internal static XmlTransaction ToInternal(Transaction txn)
 {
     if (txn == null)
     {
         return null;
     }
     return txn.txn_;
 }
Example #2
0
 public int GetNumDocuments(Transaction txn)
 {
     return (int) this.cont_.getNumDocuments(Transaction.ToInternal(txn));
 }
Example #3
0
 public virtual InputStream ResolveEntity(Transaction txn, Manager mgr, string systemId, string publicId)
 {
     return null;
 }
Example #4
0
 public virtual Results ResolveCollection(Transaction txn, Manager mgr, string uri)
 {
     return null;
 }
Example #5
0
 public void RenameContainer(Transaction txn, string oldName, string newName)
 {
     this.mgr_.renameContainer(Transaction.ToInternal(txn), oldName, newName);
 }
Example #6
0
 public Results Query(Transaction txn, string query, QueryContext context, DocumentConfig config)
 {
     return Results.Create(this.mgr_.query(Transaction.ToInternal(txn), query, QueryContext.ToInternal(context), config.Flags));
 }
Example #7
0
 public QueryExpression Prepare(Transaction txn, string query, QueryContext context)
 {
     return QueryExpression.Create(this.mgr_.prepare(Transaction.ToInternal(txn), query, QueryContext.ToInternal(context)));
 }
Example #8
0
 public Container OpenContainer(Transaction txn, string name)
 {
     return Container.Create(this.mgr_.openContainer(Transaction.ToInternal(txn), name));
 }
Example #9
0
 public void PutDocument(Transaction txn, Document document, UpdateContext context, DocumentConfig config)
 {
     this.cont_.putDocument(Transaction.ToInternal(txn), Document.ToInternal(document), UpdateContext.ToInternal(context), config.Flags);
 }
Example #10
0
 public Statistics LookupStatistics(Transaction txn, IndexSpecification.Entry entry, string parent_uri, string parent_name, Value value)
 {
     return Statistics.Create(this.cont_.lookupStatistics(Transaction.ToInternal(txn), entry.URI, entry.Name, parent_uri, parent_name, entry.Index, Value.ToInternal(value)));
 }
Example #11
0
 public Statistics LookupStatistics(Transaction txn, IndexSpecification.Entry entry, string parent_uri, string parent_name)
 {
     return this.LookupStatistics(txn, entry, parent_uri, parent_name, null);
 }
Example #12
0
 public Statistics LookupStatistics(Transaction txn, IndexSpecification.Entry entry)
 {
     return this.LookupStatistics(txn, entry, null);
 }
Example #13
0
 public Results LookupIndex(Transaction txn, QueryContext context, IndexSpecification.Entry entry, string parent_uri, string parent_name, Value value, DocumentConfig config)
 {
     return Results.Create(this.cont_.lookupIndex(Transaction.ToInternal(txn), QueryContext.ToInternal(context), entry.URI, entry.Name, parent_uri, parent_name, entry.Index, Value.ToInternal(value), config.Flags));
 }
Example #14
0
 public Results LookupIndex(Transaction txn, QueryContext context, IndexSpecification.Entry entry, string parent_uri, string parent_name, Value value)
 {
     return this.LookupIndex(txn, context, entry, parent_uri, parent_name, value, new DocumentConfig());
 }
Example #15
0
 public Results LookupIndex(Transaction txn, QueryContext context, IndexSpecification.Entry entry)
 {
     return this.LookupIndex(txn, context, entry, null, new DocumentConfig());
 }
Example #16
0
 public string PutDocument(Transaction txn, string name, InputStream input, UpdateContext context, DocumentConfig config)
 {
     using (input)
     {
         input.Internal.disownCPtr();
         return this.cont_.putDocument(Transaction.ToInternal(txn), name, input.Internal, UpdateContext.ToInternal(context), config.Flags);
     }
 }
Example #17
0
 public Container CreateContainer(Transaction txn, string name, ContainerConfig config)
 {
     return Container.Create(this.mgr_.createContainer(Transaction.ToInternal(txn), name, config.Flags, config.RawType, config.Mode));
 }
Example #18
0
 public string PutDocument(Transaction txn, string name, string contents, UpdateContext context, DocumentConfig config)
 {
     return this.cont_.putDocument(Transaction.ToInternal(txn), name, contents, UpdateContext.ToInternal(context), config.Flags);
 }
Example #19
0
 public Container OpenContainer(Transaction txn, string name, ContainerConfig config)
 {
     return Container.Create(this.mgr_.openContainer(Transaction.ToInternal(txn), name, config.Flags));
 }
Example #20
0
 public void SetIndexSpecification(Transaction txn, IndexSpecification index, UpdateContext uc)
 {
     this.cont_.setIndexSpecification(Transaction.ToInternal(txn), index.Internal, UpdateContext.ToInternal(uc));
 }
Example #21
0
 public Results Query(Transaction txn, string query, QueryContext context)
 {
     return Results.Create(this.mgr_.query(Transaction.ToInternal(txn), query, QueryContext.ToInternal(context)));
 }
Example #22
0
 public void AddIndex(Transaction txn, IndexSpecification.Entry entry, UpdateContext uc)
 {
     this.cont_.addIndex(Transaction.ToInternal(txn), entry.URI, entry.Name, entry.Index, UpdateContext.ToInternal(uc));
 }
Example #23
0
 public void RemoveContainer(Transaction txn, string name)
 {
     this.mgr_.removeContainer(Transaction.ToInternal(txn), name);
 }
Example #24
0
 public void DeleteDefaultIndex(Transaction txn, string index, UpdateContext uc)
 {
     this.cont_.deleteDefaultIndex(Transaction.ToInternal(txn), index, UpdateContext.ToInternal(uc));
 }
Example #25
0
 public int Execute(Transaction txn, Value toModify, QueryContext context, UpdateContext uc)
 {
     return (int) this.mod_.execute(Transaction.ToInternal(txn), Value.ToInternal(toModify), QueryContext.ToInternal(context), UpdateContext.ToInternal(uc));
 }
Example #26
0
 public void DeleteDocument(Transaction txn, Document document, UpdateContext context)
 {
     this.cont_.deleteDocument(Transaction.ToInternal(txn), Document.ToInternal(document), UpdateContext.ToInternal(context));
 }
Example #27
0
 public virtual Document ResolveDocument(Transaction txn, Manager mgr, string uri)
 {
     return null;
 }
Example #28
0
 public void DeleteDocument(Transaction txn, string name, UpdateContext context)
 {
     this.cont_.deleteDocument(Transaction.ToInternal(txn), name, UpdateContext.ToInternal(context));
 }
Example #29
0
 public virtual InputStream ResolveSchema(Transaction txn, Manager mgr, string schemaLocation, string nameSpace)
 {
     return null;
 }
Example #30
0
 public IndexSpecification GetIndexSpecification(Transaction txn)
 {
     return new IndexSpecification(this.cont_.getIndexSpecification(Transaction.ToInternal(txn)));
 }