Пример #1
0
 private ITypeHandler4 TypeHandlerFor(Db4objects.Db4o.Internal.Query.Processor.QCandidate
                                      candidate)
 {
     Db4objects.Db4o.Internal.ClassMetadata classMetadata = candidate.ReadClassMetadata
                                                                ();
     if (classMetadata != null)
     {
         return(classMetadata.TypeHandler());
     }
     return(null);
 }
Пример #2
0
        private ITypeHandler4 TypeHandlerFor(QCandidate
                                             candidate)
        {
            var classMetadata = candidate.ReadClassMetadata
                                    ();

            if (classMetadata != null)
            {
                return(classMetadata.TypeHandler());
            }
            return(null);
        }
Пример #3
0
        public override void Visit(object obj)
        {
            QCandidate qc        = (QCandidate)obj;
            bool       res       = true;
            bool       processed = false;

            if (_checkClassMetadataOnly)
            {
                ClassMetadata yc = qc.ReadClassMetadata();
                if (yc != null)
                {
                    res       = i_evaluator.Not(_classMetadata.GetHigherHierarchy(yc) == _classMetadata);
                    processed = true;
                }
            }
            if (!processed)
            {
                res = Evaluate(qc);
            }
            Visit1(qc.GetRoot(), this, res);
        }
Пример #4
0
 private ITypeHandler4 TypeHandlerFor(QCandidate
     candidate)
 {
     var classMetadata = candidate.ReadClassMetadata
         ();
     if (classMetadata != null)
     {
         return classMetadata.TypeHandler();
     }
     return null;
 }