Exemplo n.º 1
0
        internal QCandidates(LocalTransaction a_trans, ClassMetadata a_classMetadata, QField
                             a_field, bool isTopLevel)
        {
            // Transaction necessary as reference to stream
            // collection of all constraints
            // possible class information
            // possible field information
            // current executing constraint, only set where needed
            _result        = new QueryResultCandidates(this);
            _isTopLevel    = isTopLevel;
            i_trans        = a_trans;
            _classMetadata = a_classMetadata;
            _field         = a_field;
            if (a_field == null || a_field._fieldMetadata == null || !(a_field._fieldMetadata
                                                                       .GetHandler() is StandardReferenceTypeHandler))
            {
                return;
            }
            ClassMetadata yc = ((StandardReferenceTypeHandler)a_field._fieldMetadata.GetHandler
                                    ()).ClassMetadata();

            if (_classMetadata == null)
            {
                _classMetadata = yc;
            }
            else
            {
                yc = _classMetadata.GetHigherOrCommonHierarchy(yc);
                if (yc != null)
                {
                    _classMetadata = yc;
                }
            }
        }
Exemplo n.º 2
0
		internal QCandidates(LocalTransaction a_trans, ClassMetadata a_classMetadata, QField
			 a_field, bool isTopLevel)
		{
			// Transaction necessary as reference to stream
			// collection of all constraints
			// possible class information
			// possible field information
			// current executing constraint, only set where needed
			_result = new QueryResultCandidates(this);
			_isTopLevel = isTopLevel;
			i_trans = a_trans;
			_classMetadata = a_classMetadata;
			_field = a_field;
			if (a_field == null || a_field._fieldMetadata == null || !(a_field._fieldMetadata
				.GetHandler() is StandardReferenceTypeHandler))
			{
				return;
			}
			ClassMetadata yc = ((StandardReferenceTypeHandler)a_field._fieldMetadata.GetHandler
				()).ClassMetadata();
			if (_classMetadata == null)
			{
				_classMetadata = yc;
			}
			else
			{
				yc = _classMetadata.GetHigherOrCommonHierarchy(yc);
				if (yc != null)
				{
					_classMetadata = yc;
				}
			}
		}
Exemplo n.º 3
0
 public _IIntVisitor_35(QueryResultCandidates _enclosing)
 {
     this._enclosing = _enclosing;
 }
Exemplo n.º 4
0
			public _IIntVisitor_35(QueryResultCandidates _enclosing)
			{
				this._enclosing = _enclosing;
			}