public QueryLoader(QueryTranslatorImpl queryTranslator, ISessionFactoryImplementor factory, SelectClause selectClause) : base(factory) { _queryTranslator = queryTranslator; Initialize(selectClause); PostInstantiate(); }
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; }
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; }
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; }
public HqlSqlTranslator(IASTNode ast, QueryTranslatorImpl qti, ISessionFactoryImplementor sfi, IDictionary<string, string> tokenReplacements, string collectionRole) { _inputAst = ast; _qti = qti; _sfi = sfi; _tokenReplacements = tokenReplacements; _collectionRole = collectionRole; }
public string GetSql(string query) { var qt = new QueryTranslatorImpl(null, query, emptyfilters, sessions); qt.Compile(null, false); return qt.SQLString; }
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; }
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; }