程序包 com.mysql.cj

类 NativeQueryAttributesBindings

    • 构造器详细资料

      • NativeQueryAttributesBindings

        public NativeQueryAttributesBindings​(Session sess)
    • 方法详细资料

      • setAttribute

        public void setAttribute​(String name,
                                 Object value)
        从接口复制的说明: QueryAttributesBindings
        Adds a new query attribute to the list of query attributes. Implementations must validate the type of the given the object and reject it or replace it by another representation if not supported, by its String version, for example. Query attribute names are not checked for duplication.
        指定者:
        setAttribute 在接口中 QueryAttributesBindings
        参数:
        name - the query attribute name.
        value - the query attribute value.
      • getAttributeValue

        public BindValue getAttributeValue​(int index)
        从接口复制的说明: QueryAttributesBindings
        Returns an internal representation of the query attribute in the given position of the query attributes list. It's implementation dependent what to do when the index value is invalid.
        指定者:
        getAttributeValue 在接口中 QueryAttributesBindings
        参数:
        index - the position of the query attribute value to return.
        返回:
        the BindValue in the given position of the query attributes list.
      • runThroughAll

        public void runThroughAll​(java.util.function.Consumer<BindValue> bindAttribute)
        从接口复制的说明: QueryAttributesBindings
        Runs through all query attributes while feeding the given Consumer with each one of them.
        指定者:
        runThroughAll 在接口中 QueryAttributesBindings
        参数:
        bindAttribute - A Consumer for each one of the single query attributes.