public virtual void CaptureQueryResultConfig() { var config = _trans.Container().Config(); _evaluationMode = config.EvaluationMode(); _prefetchDepth = config.PrefetchDepth(); _prefetchCount = config.PrefetchObjectCount(); }
protected MsgD WriteQueryResult(AbstractQueryResult queryResult, QueryEvaluationMode evaluationMode, ObjectExchangeConfiguration config) { if (evaluationMode == QueryEvaluationMode.Immediate) { return WriteImmediateQueryResult(queryResult, config); } return WriteLazyQueryResult(queryResult, config); }
private static AbstractQueryResult ForMode(Transaction transaction, QueryEvaluationMode mode) { if (mode == QueryEvaluationMode.Lazy) { return new LazyQueryResult(transaction); } if (mode == QueryEvaluationMode.Snapshot) { return new SnapShotQueryResult(transaction); } return new IdListQueryResult(transaction); }
public override AbstractQueryResult NewQueryResult(Transaction trans, QueryEvaluationMode mode) { throw new InvalidOperationException(); }
protected virtual AbstractQueryResult NewQueryResult(QueryEvaluationMode mode) { return Container().NewQueryResult(Transaction(), mode); }
public void EvaluationMode(QueryEvaluationMode mode) { _config.Put(QueryEvaluationModeKey, mode); }
private QQuery NewQuery(QueryEvaluationMode mode) { QQuery query = (QQuery)LocalContainer().Query(); query.EvaluationMode(mode); return query; }
public _IClosure4_24(MGetAll _enclosing, QueryEvaluationMode mode) { this._enclosing = _enclosing; this.mode = mode; }
private AbstractQueryResult GetAll(QueryEvaluationMode mode) { return ((AbstractQueryResult)NewQuery(mode).TriggeringQueryEvents(new _IClosure4_24 (this, mode))); }
public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base (transaction) { _delegate = ForMode(transaction, mode); }
public abstract AbstractQueryResult NewQueryResult(Transaction trans, QueryEvaluationMode mode);
public LabeledQueryMode(QueryEvaluationMode mode) { _mode = mode; }
public virtual void EvaluationMode(QueryEvaluationMode mode) { _evaluationMode = mode; }
public virtual void Unmarshall(Transaction a_trans) { _evaluationMode = QueryEvaluationMode.FromInt(_evaluationModeAsInt); _trans = a_trans; var i = IterateConstraints(); while (i.MoveNext()) { ((QCon) i.Current).Unmarshall(a_trans); } }
public virtual AbstractQueryResult GetAll(Transaction trans, QueryEvaluationMode mode) { AbstractQueryResult queryResult = NewQueryResult(trans, mode); queryResult.LoadFromClassIndexes(ClassCollection().Iterator()); return queryResult; }
public sealed override AbstractQueryResult NewQueryResult(Transaction trans, QueryEvaluationMode mode) { if (trans == null) { throw new ArgumentNullException(); } if (mode == QueryEvaluationMode.Immediate) { return new IdListQueryResult(trans); } return new HybridQueryResult(trans, mode); }