Exemplo n.º 1
0
 public virtual void CaptureQueryResultConfig()
 {
     var config = _trans.Container().Config();
     _evaluationMode = config.EvaluationMode();
     _prefetchDepth = config.PrefetchDepth();
     _prefetchCount = config.PrefetchObjectCount();
 }
Exemplo n.º 2
0
 protected MsgD WriteQueryResult(AbstractQueryResult queryResult, QueryEvaluationMode
     evaluationMode, ObjectExchangeConfiguration config)
 {
     if (evaluationMode == QueryEvaluationMode.Immediate)
     {
         return WriteImmediateQueryResult(queryResult, config);
     }
     return WriteLazyQueryResult(queryResult, config);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
		public override AbstractQueryResult NewQueryResult(Transaction trans, QueryEvaluationMode
			 mode)
		{
			throw new InvalidOperationException();
		}
Exemplo n.º 5
0
 protected virtual AbstractQueryResult NewQueryResult(QueryEvaluationMode mode)
 {
     return Container().NewQueryResult(Transaction(), mode);
 }
Exemplo n.º 6
0
		public void EvaluationMode(QueryEvaluationMode mode)
		{
			_config.Put(QueryEvaluationModeKey, mode);
		}
Exemplo n.º 7
0
		private QQuery NewQuery(QueryEvaluationMode mode)
		{
			QQuery query = (QQuery)LocalContainer().Query();
			query.EvaluationMode(mode);
			return query;
		}
Exemplo n.º 8
0
			public _IClosure4_24(MGetAll _enclosing, QueryEvaluationMode mode)
			{
				this._enclosing = _enclosing;
				this.mode = mode;
			}
Exemplo n.º 9
0
		private AbstractQueryResult GetAll(QueryEvaluationMode mode)
		{
			return ((AbstractQueryResult)NewQuery(mode).TriggeringQueryEvents(new _IClosure4_24
				(this, mode)));
		}
Exemplo n.º 10
0
 public HybridQueryResult(Transaction transaction, QueryEvaluationMode mode) : base
     (transaction)
 {
     _delegate = ForMode(transaction, mode);
 }
Exemplo n.º 11
0
		public abstract AbstractQueryResult NewQueryResult(Transaction trans, QueryEvaluationMode
			 mode);
			public LabeledQueryMode(QueryEvaluationMode mode)
			{
				_mode = mode;
			}
Exemplo n.º 13
0
 public virtual void EvaluationMode(QueryEvaluationMode mode)
 {
     _evaluationMode = mode;
 }
Exemplo n.º 14
0
 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);
     }
 }
Exemplo n.º 15
0
		public virtual AbstractQueryResult GetAll(Transaction trans, QueryEvaluationMode 
			mode)
		{
			AbstractQueryResult queryResult = NewQueryResult(trans, mode);
			queryResult.LoadFromClassIndexes(ClassCollection().Iterator());
			return queryResult;
		}
Exemplo n.º 16
0
		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);
		}