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; }
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)); }
internal static XmlValue ToInternal(Value v) { if (v == null) { return null; } return v.Internal; }
private void setCurrent(Value val) { if (this.current_ != null) { this.current_.Dispose(); } this.current_ = val; }
public void Add(Value v) { this.r_.add(Value.ToInternal(v)); }
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))); }
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)); }
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()); }
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)); }
public void SetVariableValue(string name, Value value) { this.qc_.setVariableValue(name, Value.ToInternal(value)); }