1 22 23 package org.xquark.extractor.microsoft; 24 25 import org.xquark.extractor.algebra.*; 26 import org.xquark.extractor.metadata.MetaDataManager; 27 import org.xquark.extractor.runtime.QueryFactory; 28 import org.xquark.xml.xdbc.XMLDBCException; 29 import org.xquark.xquery.metadata.resolver.MetadataAccess; 30 31 public class MicrosoftQueryFactory extends QueryFactory { 32 private static final String RCSRevision = "$Revision: 1.4 $"; 33 private static final String RCSName = "$Name: $"; 34 35 public MicrosoftQueryFactory(MetaDataManager metadataManager, MetadataAccess metadata) 36 throws XMLDBCException { 37 super(metadataManager, metadata); 38 } 39 40 protected void createVisitors() 41 { 42 TypeInterpreter ti = new TypeInterpreter(); 43 _genAlgebraVisitor = new GenAlgebraVisitor( ti, _metadataManager, _attIDProvider, _relIDProvider); 44 45 _algebraTypeVisitor = new AlgebraTypeVisitor(); 46 _removeProjectVisitor = new RemoveIntermediateProjectVisitor(); 47 _brav = new BuildReferredAttributes(); 48 _apv = new AnalyzePredicateVisitor(); 49 50 _genSqlVisitor = new org.xquark.extractor.microsoft.MicrosoftGenSqlVisitor(_relIDProvider); 51 _genSqlVisitor.setMetadataManager(_metadataManager); 52 } 53 } 54 | Popular Tags |