接口 ParameterContainer

  • 所有已知实现类:
    ComponentJoin, EntityJoinFromElement, FromElement, ImpliedFromElement, MapKeyEntityFromElement, SqlFragment

    @Deprecated
    public interface ParameterContainer
    已过时。
    See entire discussion above
    Currently this is needed in order to deal with FromElements which contain "hidden" JDBC parameters from applying filters.

    Would love for this to go away, but that would require that Hibernate's internal join handling be able to either:

    • render the same AST structures
    • render structures capable of being converted to these AST structures

    In the interim, this allows us to at least treat these "hidden" parameters properly which is the most pressing need.

    作者:
    Steve Ebersole
    • 方法详细资料

      • setText

        void setText​(String text)
        已过时。
        Set the renderable text of this node.
        参数:
        text - The renderable text
      • addEmbeddedParameter

        void addEmbeddedParameter​(ParameterSpecification specification)
        已过时。
        Adds a parameter specification for a parameter encountered within this node. We use the term 'embedded' here because of the fact that the parameter was simply encountered as part of the node's text; it does not exist as part of a subtree as it might in a true AST.
        参数:
        specification - The generated specification.
      • hasEmbeddedParameters

        boolean hasEmbeddedParameters()
        已过时。
        Determine whether this node contains embedded parameters. The implication is that getEmbeddedParameters() is allowed to return null if this method returns false.
        返回:
        True if this node contains embedded parameters; false otherwise.
      • getEmbeddedParameters

        ParameterSpecification[] getEmbeddedParameters()
        已过时。
        Retrieve all embedded parameter specifications.
        返回:
        All embedded parameter specifications; may return null.
        另请参阅:
        hasEmbeddedParameters()