接口 QueryTranslator

    • 字段详细资料

      • ERROR_CANNOT_FETCH_WITH_ITERATE

        static final String ERROR_CANNOT_FETCH_WITH_ITERATE
        另请参阅:
        常量字段值
      • ERROR_NAMED_PARAMETER_DOES_NOT_APPEAR

        static final String ERROR_NAMED_PARAMETER_DOES_NOT_APPEAR
        另请参阅:
        常量字段值
      • ERROR_ORDINAL_PARAMETER_DOES_NOT_APPEAR

        static final String ERROR_ORDINAL_PARAMETER_DOES_NOT_APPEAR
        另请参阅:
        常量字段值
      • ERROR_LEGACY_ORDINAL_PARAMS_NO_LONGER_SUPPORTED

        static final String ERROR_LEGACY_ORDINAL_PARAMS_NO_LONGER_SUPPORTED
        另请参阅:
        常量字段值
      • ERROR_CANNOT_DETERMINE_TYPE

        static final String ERROR_CANNOT_DETERMINE_TYPE
        另请参阅:
        常量字段值
      • ERROR_CANNOT_FORMAT_LITERAL

        static final String ERROR_CANNOT_FORMAT_LITERAL
        另请参阅:
        常量字段值
    • 方法详细资料

      • compile

        void compile​(Map replacements,
                     boolean shallow)
              throws QueryException,
                     MappingException
        Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.
        参数:
        replacements - Defined query substitutions.
        shallow - Does this represent a shallow (scalar or entity-id) select?
        抛出:
        QueryException - There was a problem parsing the query string.
        MappingException - There was a problem querying defined mappings.
      • getQuerySpaces

        Set<Serializable> getQuerySpaces()
        Returns the set of query spaces (table names) that the query refers to.
        返回:
        A set of query spaces (table names).
      • getQueryIdentifier

        String getQueryIdentifier()
        Retrieve the query identifier for this translator. The query identifier is used in states collection.
        返回:
        the identifier
      • getSQLString

        String getSQLString()
        Returns the SQL string generated by the translator.
        返回:
        the SQL string generated by the translator.
      • collectSqlStrings

        List<String> collectSqlStrings()
      • getQueryString

        String getQueryString()
        Returns the HQL string processed by the translator.
        返回:
        the HQL string processed by the translator.
      • getEnabledFilters

        Map getEnabledFilters()
        Returns the filters enabled for this query translator.
        返回:
        Filters enabled for this query execution.
      • getReturnTypes

        Type[] getReturnTypes()
        Returns an array of Types represented in the query result.
        返回:
        Query return types.
      • getReturnAliases

        String[] getReturnAliases()
        Returns an array of HQL aliases
      • getColumnNames

        String[][] getColumnNames()
        Returns the column names in the generated SQL.
        返回:
        the column names in the generated SQL.
      • getParameterTranslations

        ParameterTranslations getParameterTranslations()
        Return information about any parameters encountered during translation.
        返回:
        The parameter information.
      • containsCollectionFetches

        boolean containsCollectionFetches()
        Does the translated query contain collection fetches?
        返回:
        true if the query does contain collection fetched; false otherwise.
      • isManipulationStatement

        boolean isManipulationStatement()
      • isUpdateStatement

        default boolean isUpdateStatement()
      • getPrimaryFromClauseTables

        default List<String> getPrimaryFromClauseTables()
      • getDynamicInstantiationResultType

        Class getDynamicInstantiationResultType()