예제 #1
0
		public QueryLoader(QueryTranslatorImpl queryTranslator, ISessionFactoryImplementor factory, SelectClause selectClause)
			: base(factory)
		{
			_queryTranslator = queryTranslator;

			Initialize(selectClause);
			PostInstantiate();
		}
예제 #2
0
		public HqlSqlWalker(QueryTranslatorImpl qti,
					  ISessionFactoryImplementor sfi,
					  ITreeNodeStream input, 
					  IDictionary<string, string> tokenReplacements,
					  string collectionRole)
			: this(input)
		{
			_sessionFactoryHelper = new SessionFactoryHelperExtensions(sfi);
			_qti = qti;
			_literalProcessor = new LiteralProcessor(this);
			_tokenReplacements = tokenReplacements;
			_collectionFilterRole = collectionRole;
		}
예제 #3
0
 public HqlSqlWalker(QueryTranslatorImpl qti,
                     ISessionFactoryImplementor sfi,
                     ITreeNodeStream input,
                     IDictionary <string, string> tokenReplacements,
                     string collectionRole)
     : this(input)
 {
     _sessionFactoryHelper = new SessionFactoryHelperExtensions(sfi);
     _qti = qti;
     _literalProcessor     = new LiteralProcessor(this);
     _tokenReplacements    = tokenReplacements;
     _collectionFilterRole = collectionRole;
 }
예제 #4
0
 public HqlSqlTranslator(
     IASTNode ast,
     QueryTranslatorImpl qti,
     ISessionFactoryImplementor sfi,
     IDictionary <string, string> tokenReplacements,
     IDictionary <string, NamedParameter> namedParameters,
     string collectionRole)
 {
     _inputAst          = ast;
     _qti               = qti;
     _sfi               = sfi;
     _tokenReplacements = tokenReplacements;
     _namedParameters   = namedParameters;
     _collectionRole    = collectionRole;
 }
예제 #5
0
		public HqlSqlTranslator(IASTNode ast, QueryTranslatorImpl qti, ISessionFactoryImplementor sfi, IDictionary<string, string> tokenReplacements, string collectionRole)
		{
			_inputAst = ast;
			_qti = qti;
			_sfi = sfi;
			_tokenReplacements = tokenReplacements;
			_collectionRole = collectionRole;
		}
예제 #6
0
		public string GetSql(string query)
		{
			var qt = new QueryTranslatorImpl(null, query, emptyfilters, sessions);
			qt.Compile(null, false);
			return qt.SQLString;
		}
예제 #7
0
		public string GetSql(string query)
		{
			var qt = new QueryTranslatorImpl(null, new HqlParseEngine(query, false, sessions).Parse(), emptyfilters, sessions);
			qt.Compile(null, false);
			return qt.SQLString;
		}
예제 #8
0
		public string GetSql(string query, IDictionary<string, string> replacements)
		{
			var qt = new QueryTranslatorImpl(null, new HqlParseEngine(query, false, sessions).Parse(), emptyfilters, sessions);
			qt.Compile(replacements, false);
			return qt.SQLString;
		}
		public string GetSql(string query)
		{
			var qt = new QueryTranslatorImpl(null, new HqlParseEngine(query, false, sessions).Parse(), new CollectionHelper.EmptyMapClass<string, IFilter>(), sessions);
			qt.Compile(null, false);
			return qt.SQLString;
		}