程序包 com.mysql.cj
类 NativeQueryAttributesBindings
- java.lang.Object
-
- com.mysql.cj.NativeQueryAttributesBindings
-
- 所有已实现的接口:
QueryAttributesBindings
public class NativeQueryAttributesBindings extends Object implements QueryAttributesBindings
-
-
构造器概要
构造器 构造器 说明 NativeQueryAttributesBindings(Session sess)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclearAttributes()Removes all query attributes from the query attributes list.BindValuegetAttributeValue(int index)Returns an internal representation of the query attribute in the given position of the query attributes list.intgetCount()Get the count of query attributes in the list.voidrunThroughAll(java.util.function.Consumer<BindValue> bindAttribute)Runs through all query attributes while feeding the givenConsumerwith each one of them.voidsetAttribute(String name, Object value)Adds a new query attribute to the list of query attributes.
-
-
-
构造器详细资料
-
NativeQueryAttributesBindings
public NativeQueryAttributesBindings(Session sess)
-
-
方法详细资料
-
setAttribute
public void setAttribute(String name, Object value)
从接口复制的说明:QueryAttributesBindingsAdds 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.
-
getCount
public int getCount()
从接口复制的说明:QueryAttributesBindingsGet the count of query attributes in the list.- 指定者:
getCount在接口中QueryAttributesBindings- 返回:
- the number of query attributes existing in the list.
-
getAttributeValue
public BindValue getAttributeValue(int index)
从接口复制的说明:QueryAttributesBindingsReturns 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
BindValuein the given position of the query attributes list.
-
runThroughAll
public void runThroughAll(java.util.function.Consumer<BindValue> bindAttribute)
从接口复制的说明:QueryAttributesBindingsRuns through all query attributes while feeding the givenConsumerwith each one of them.- 指定者:
runThroughAll在接口中QueryAttributesBindings- 参数:
bindAttribute- AConsumerfor each one of the single query attributes.
-
clearAttributes
public void clearAttributes()
从接口复制的说明:QueryAttributesBindingsRemoves all query attributes from the query attributes list.- 指定者:
clearAttributes在接口中QueryAttributesBindings
-
-