| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private Map | |
| private EntityGraphQueryHint | |
| private SessionFactoryImplementor | factory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private String | |
| private static final CoreMessageLogger | |
| private ParameterTranslations | |
| private final String | |
| private QueryLoader | |
| private boolean | |
| private String | |
| private Statement | |
| private StatementExecutor | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | QueryTranslatorImpl(String
The query-identifier (used in stats collection) queryIdentifier, String The hql query to translate query, Map<K, V> Currently enabled filters enabledFilters, SessionFactoryImplementor The session factory constructing this translator instance. factory)
Deprecated
as a consequence of
Creates a new AST-based query translator.
SessionFactoryImplementor being deprecated.
|
| public | QueryTranslatorImpl(String queryIdentifier, String query, Map<K, V> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private HqlSqlWalker | |
| protected StatementExecutor | |
| public List | |
| public void | compile(Map<K, V>
Defined query substitutions. replacements, boolean Does this represent a shallow (scalar or entity-id) select? shallow)Implements org. |
| public void | compile(String
the role name of the collection used as the basis for the filter. collectionRole, Map<K, V> Defined query substitutions. replacements, boolean Does this represent a shallow (scalar or entity-id) select? shallow)Implements org. |
| public boolean | containsCollectionFetches()
Implements org. |
| protected QueryLoader | createQueryLoader(HqlSqlWalker w, SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private synchronized void | doCompile(Map<K, V>
Defined query substitutions. replacements, boolean Does this represent a shallow (scalar or entity-id) select? shallow, String the role name of the collection used as the basis for the filter, NULL if this
is not a filter. collectionRole)Performs both filter and non-filter compiling. |
| protected void | |
| private void | |
| public int | executeUpdate(QueryParameters
The query bind parameters. queryParameters, SharedSessionContractImplementor The session owning this query. session)Implements org. |
| private void | |
| public List | |
| public String[][] | getColumnNames()
Implements org. |
| public Class | |
| public Map | getEnabledFilters()
Implements org. |
| public EntityGraphQueryHint | |
| public int[] | |
| public ParameterTranslations | getParameterTranslations()
Implements org. |
| public List | |
| public String | getQueryIdentifier()
Implements org. |
| public Set | getQuerySpaces()
Implements org. |
| public String | getQueryString()
Implements org. |
| public String[] | getReturnAliases()
Implements org. |
| public Type[] | Returns: an array of Types.Implements org. |
| public Statement | |
| protected String[] | Returns: the sql queries used for the updateThe SQl statements used for an update query. |
| public String | getSQLString()
Implements org. |
| protected StatementExecutor | |
| private HqlSqlWalker | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Iterator | iterate(QueryParameters
The query bind parameters. queryParameters, EventSource The session owning this query. session)Implements org.
Deprecated
as a consequence of
Return the query results as an iterator
EventSource being deprecated.
|
| public List | list(SharedSessionContractImplementor
The session owning this query. session, QueryParameters The query bind parameters. queryParameters)Implements org. |
| private HqlParser | |
| public ScrollableResultsImplementor | scroll(QueryParameters
The query bind parameters. queryParameters, SharedSessionContractImplementor The session owning this query. session)Implements org. |
| public void | |
| pack-priv void | |
| public void | validateScrollability()
Implements org. |
| collectedParameterSpecifications | back to summary |
|---|---|
| private List<ParameterSpecification> collectedParameterSpecifications | |
| compiled | back to summary |
|---|---|
| private boolean compiled | |
| enabledFilters | back to summary |
|---|---|
| private Map<K, V> enabledFilters | |
| entityGraphQueryHint | back to summary |
|---|---|
| private EntityGraphQueryHint entityGraphQueryHint | |
| factory | back to summary |
|---|---|
| private SessionFactoryImplementor factory
Deprecated as a consequence of | |
| hql | back to summary |
|---|---|
| private String hql | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| paramTranslations | back to summary |
|---|---|
| private ParameterTranslations paramTranslations | |
| queryIdentifier | back to summary |
|---|---|
| private final String queryIdentifier | |
| queryLoader | back to summary |
|---|---|
| private QueryLoader queryLoader | |
| shallowQuery | back to summary |
|---|---|
| private boolean shallowQuery | |
| sql | back to summary |
|---|---|
| private String sql | |
| sqlAst | back to summary |
|---|---|
| private Statement sqlAst | |
| statementExecutor | back to summary |
|---|---|
| private StatementExecutor statementExecutor | |
| tokenReplacements | back to summary |
|---|---|
| private Map<K, V> tokenReplacements | |
| QueryTranslatorImpl | back to summary |
|---|---|
| public QueryTranslatorImpl(String queryIdentifier, String query, Map<K, V> enabledFilters, SessionFactoryImplementor factory)
Deprecated as a consequence of Creates a new AST-based query translator.
| |
| QueryTranslatorImpl | back to summary |
|---|---|
| public QueryTranslatorImpl(String queryIdentifier, String query, Map<K, V> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
Deprecated as a consequence of | |
| affectsExtraTables | back to summary |
|---|---|
| private static boolean affectsExtraTables(HqlSqlWalker walker, Queryable persister) | |
| analyze | back to summary |
|---|---|
| private HqlSqlWalker analyze(HqlParser parser, String collectionRole) throws QueryException, RecognitionException | |
| buildAppropriateStatementExecutor | back to summary |
|---|---|
| protected StatementExecutor buildAppropriateStatementExecutor(HqlSqlWalker walker) | |
| collectSqlStrings | back to summary |
|---|---|
| public List Implements org.
| |
| compile | back to summary |
|---|---|
| public void compile(Map<K, V> replacements, boolean shallow) throws QueryException, MappingException Implements org. Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.
| |
| compile | back to summary |
|---|---|
| public void compile(String collectionRole, Map<K, V> replacements, boolean shallow) throws QueryException, MappingException Implements org. Compile a filter. This method may be called multiple times. Subsequent invocations are no-ops.
| |
| containsCollectionFetches | back to summary |
|---|---|
| public boolean containsCollectionFetches() Implements org. Doc from org. Does the translated query contain collection fetches?
| |
| createQueryLoader | back to summary |
|---|---|
| protected QueryLoader createQueryLoader(HqlSqlWalker w, SessionFactoryImplementor factory)
Deprecated as a consequence of | |
| doCompile | back to summary |
|---|---|
| private synchronized void doCompile(Map<K, V> replacements, boolean shallow, String collectionRole) Performs both filter and non-filter compiling. | |
| errorIfDML | back to summary |
|---|---|
| protected void errorIfDML() throws HibernateException | |
| errorIfSelect | back to summary |
|---|---|
| private void errorIfSelect() throws HibernateException | |
| executeUpdate | back to summary |
|---|---|
| public int executeUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException Implements org. Doc from org. Perform a bulk update/delete operation given the underlying query definition.
| |
| generate | back to summary |
|---|---|
| private void generate(AST sqlAst) throws QueryException, RecognitionException | |
| getCollectedParameterSpecifications | back to summary |
|---|---|
| public List | |
| getColumnNames | back to summary |
|---|---|
| public String[][] getColumnNames() Implements org. Doc from org. Returns the column names in the generated SQL. | |
| getDynamicInstantiationResultType | back to summary |
|---|---|
| public Class Implements org.
| |
| getEnabledFilters | back to summary |
|---|---|
| public Map Implements org. Doc from org. Returns the filters enabled for this query translator. | |
| getEntityGraphQueryHint | back to summary |
|---|---|
| public EntityGraphQueryHint getEntityGraphQueryHint() | |
| getNamedParameterLocs | back to summary |
|---|---|
| public int[] getNamedParameterLocs(String name) | |
| getParameterTranslations | back to summary |
|---|---|
| public ParameterTranslations getParameterTranslations() Implements org. Doc from org. Return information about any parameters encountered during translation.
| |
| getPrimaryFromClauseTables | back to summary |
|---|---|
| public List Overrides default org.
| |
| getQueryIdentifier | back to summary |
|---|---|
| public String getQueryIdentifier() Implements org. Doc from org. Retrieve the query identifier for this translator. The query identifier is used in states collection. | |
| getQuerySpaces | back to summary |
|---|---|
| public Set Implements org. Doc from org. Returns the set of query spaces (table names) that the query refers to.
| |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements org. Doc from org. Returns the HQL string processed by the translator. | |
| getReturnAliases | back to summary |
|---|---|
| public String[] getReturnAliases() Implements org. Doc from org. Returns an array of HQL aliases
| |
| getReturnTypes | back to summary |
|---|---|
| public Type[] getReturnTypes() Implements org. Types of the return values of an iterate() style query. | |
| getSqlAST | back to summary |
|---|---|
| public Statement getSqlAST() | |
| getSqlStatements | back to summary |
|---|---|
| protected String[] getSqlStatements() The SQl statements used for an update query. Throws exception if the query is a SELECT.
| |
| getSQLString | back to summary |
|---|---|
| public String getSQLString() Implements org. The SQL query string to be called; implemented by all subclasses
| |
| getStatementExecutor | back to summary |
|---|---|
| protected StatementExecutor getStatementExecutor() | |
| getWalker | back to summary |
|---|---|
| private HqlSqlWalker getWalker() | |
| isManipulationStatement | back to summary |
|---|---|
| public boolean isManipulationStatement() Implements org.
| |
| isShallowQuery | back to summary |
|---|---|
| public boolean isShallowQuery() | |
| isUpdateStatement | back to summary |
|---|---|
| public boolean isUpdateStatement() Overrides default org.
| |
| iterate | back to summary |
|---|---|
| public Iterator Implements org. Deprecated as a consequence of Return the query results as an iterator
| |
| list | back to summary |
|---|---|
| public List Implements org. Doc from org. Perform a list operation given the underlying query definition.
| |
| parse | back to summary |
|---|---|
| private HqlParser parse(boolean filter) throws TokenStreamException | |
| scroll | back to summary |
|---|---|
| public ScrollableResultsImplementor scroll(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException Implements org. Return the query results, as an instance of ScrollableResults
| |
| setEntityGraphQueryHint | back to summary |
|---|---|
| public void setEntityGraphQueryHint(EntityGraphQueryHint entityGraphQueryHint) | |
| showHqlAst | back to summary |
|---|---|
| pack-priv void showHqlAst(AST hqlAst) | |
| validateScrollability | back to summary |
|---|---|
| public void validateScrollability() throws HibernateException Implements org. Doc from org. Validate the scrollability of the translated query.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AST | |
| private final SessionFactoryImplementor | factory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | JavaConstantConverter(SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void |
| dotRoot | back to summary |
|---|---|
| private AST dotRoot | |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory
Deprecated as a consequence of | |
| JavaConstantConverter | back to summary |
|---|---|
| public JavaConstantConverter(SessionFactoryImplementor factory)
Deprecated as a consequence of | |
| handleDotStructure | back to summary |
|---|---|
| private void handleDotStructure(AST dotStructureRoot) | |
| visit | back to summary |
|---|---|
| public void visit(AST node) Implements org.
| |