Esempio n. 1
0
 private bool ResolveDocumentWrapper(IntPtr txn, IntPtr mgr, string uri, IntPtr val)
 {
     bool flag;
     using (Transaction transaction = (txn == IntPtr.Zero) ? null : Transaction.Create(new XmlTransaction(txn, false)))
     {
         using (Manager manager = (mgr == IntPtr.Zero) ? null : new Manager(new XmlManager(mgr, false)))
         {
             using (Document document = this.ResolveDocument(transaction, manager, uri))
             {
                 if (document == null)
                 {
                     flag = false;
                 }
                 else
                 {
                     using (Value value2 = new Value(document))
                     {
                         using (XmlValue value3 = (val == IntPtr.Zero) ? null : new XmlValue(val, false))
                         {
                             XmlValue.setValue(value3, Value.ToInternal(value2));
                             flag = true;
                         }
                     }
                 }
             }
         }
     }
     return flag;
 }
Esempio n. 2
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));
 }
Esempio n. 3
0
 internal static XmlValue ToInternal(Value v)
 {
     if (v == null)
     {
         return null;
     }
     return v.Internal;
 }
Esempio n. 4
0
 private void setCurrent(Value val)
 {
     if (this.current_ != null)
     {
         this.current_.Dispose();
     }
     this.current_ = val;
 }
Esempio n. 5
0
 public void Add(Value v)
 {
     this.r_.add(Value.ToInternal(v));
 }
Esempio n. 6
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)));
 }
Esempio n. 7
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));
 }
Esempio n. 8
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());
 }
Esempio n. 9
0
 public Results Execute(Transaction txn, Value contextItem, QueryContext context, DocumentConfig config)
 {
     return Results.Create(this.qe_.execute(Transaction.ToInternal(txn), Value.ToInternal(contextItem), QueryContext.ToInternal(context), config.Flags));
 }
Esempio n. 10
0
 public void SetVariableValue(string name, Value value)
 {
     this.qc_.setVariableValue(name, Value.ToInternal(value));
 }