程序包 com.mysql.cj
类 NativeQueryBindValue
- java.lang.Object
-
- com.mysql.cj.NativeQueryBindValue
-
-
字段概要
字段 修饰符和类型 字段 说明 protected longboundBeforeExecutionNumCalendarcalendarprotected booleanescapeBytesIfNeededprotected booleanisLoadDataQueryIs this query a LOAD DATA query?protected booleanisNationalprotected booleanisNullNULL indicatorprotected booleanisSethas this parameter been set?protected booleankeepOrigNanosprotected longscaleOrLengthprotected MysqlTypetargetTypeObjectvalueThe value to storeprotected ValueEncodervalueEncoder
-
构造器概要
构造器 限定符 构造器 说明 protectedNativeQueryBindValue(NativeQueryBindValue copyMe)NativeQueryBindValue(Session sess)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 NativeQueryBindValueclone()booleanescapeBytesIfNeeded()longgetBinaryLength()Gets the length of this bind value in the binary protocol representation.longgetBoundBeforeExecutionNum()byte[]getByteValue()CalendargetCalendar()FieldgetField()intgetFieldType()MysqlTypegetMysqlType()StringgetName()Gets the name of this query attribute.longgetScaleOrLength()StringgetString()Get a String representation of the value.longgetTextLength()Gets the length of this bind value in the text protocol representation.ObjectgetValue()booleanisNational()booleanisNull()booleanisSet()booleanisStream()booleankeepOrigNanos()voidreset()voidsetBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)voidsetCalendar(Calendar cal)voidsetEscapeBytesIfNeeded(boolean val)voidsetField(Field field)voidsetIsNational(boolean isNational)voidsetKeepOrigNanos(boolean value)Should the value keep original fractional seconds ignoring sendFractionalSeconds and sendFractionalSecondsForTime?voidsetMysqlType(MysqlType type)voidsetName(String name)voidsetNull(boolean isNull)voidsetScaleOrLength(long scaleOrLength)voidwriteAsBinary(Message intoMessage)voidwriteAsQueryAttribute(Message intoMessage)voidwriteAsText(Message intoMessage)
-
-
-
字段详细资料
-
isNull
protected boolean isNull
NULL indicator
-
isNational
protected boolean isNational
-
targetType
protected MysqlType targetType
-
value
public Object value
The value to store
-
isSet
protected boolean isSet
has this parameter been set?
-
calendar
public Calendar calendar
-
escapeBytesIfNeeded
protected boolean escapeBytesIfNeeded
-
isLoadDataQuery
protected boolean isLoadDataQuery
Is this query a LOAD DATA query?
-
keepOrigNanos
protected boolean keepOrigNanos
-
valueEncoder
protected ValueEncoder valueEncoder
-
scaleOrLength
protected long scaleOrLength
-
boundBeforeExecutionNum
protected long boundBeforeExecutionNum
-
-
构造器详细资料
-
NativeQueryBindValue
public NativeQueryBindValue(Session sess)
-
NativeQueryBindValue
protected NativeQueryBindValue(NativeQueryBindValue copyMe)
-
-
方法详细资料
-
clone
public NativeQueryBindValue clone()
-
setBinding
public void setBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)
- 指定者:
setBinding在接口中BindValue
-
getByteValue
public byte[] getByteValue()
- 指定者:
getByteValue在接口中BindValue
-
isNational
public boolean isNational()
- 指定者:
isNational在接口中BindValue
-
setIsNational
public void setIsNational(boolean isNational)
- 指定者:
setIsNational在接口中BindValue
-
keepOrigNanos
public boolean keepOrigNanos()
- 指定者:
keepOrigNanos在接口中BindValue
-
setKeepOrigNanos
public void setKeepOrigNanos(boolean value)
从接口复制的说明:BindValueShould the value keep original fractional seconds ignoring sendFractionalSeconds and sendFractionalSecondsForTime?If the value is a part of key for UpdatableResultSet updater, it should keep original milliseconds.
- 指定者:
setKeepOrigNanos在接口中BindValue
-
getMysqlType
public MysqlType getMysqlType()
- 指定者:
getMysqlType在接口中BindValue
-
setMysqlType
public void setMysqlType(MysqlType type)
- 指定者:
setMysqlType在接口中BindValue
-
escapeBytesIfNeeded
public boolean escapeBytesIfNeeded()
- 指定者:
escapeBytesIfNeeded在接口中BindValue
-
setEscapeBytesIfNeeded
public void setEscapeBytesIfNeeded(boolean val)
- 指定者:
setEscapeBytesIfNeeded在接口中BindValue
-
getCalendar
public Calendar getCalendar()
- 指定者:
getCalendar在接口中BindValue
-
setCalendar
public void setCalendar(Calendar cal)
- 指定者:
setCalendar在接口中BindValue
-
getFieldType
public int getFieldType()
- 指定者:
getFieldType在接口中BindValue
-
getTextLength
public long getTextLength()
从接口复制的说明:BindValueGets the length of this bind value in the text protocol representation.- 指定者:
getTextLength在接口中BindValue- 返回:
- the expected length, in bytes, of this bind value after being encoded.
-
getBinaryLength
public long getBinaryLength()
从接口复制的说明:BindValueGets the length of this bind value in the binary protocol representation.- 指定者:
getBinaryLength在接口中BindValue- 返回:
- the expected length, in bytes, of this bind value after being encoded.
-
getBoundBeforeExecutionNum
public long getBoundBeforeExecutionNum()
- 指定者:
getBoundBeforeExecutionNum在接口中BindValue
-
getScaleOrLength
public long getScaleOrLength()
- 指定者:
getScaleOrLength在接口中BindValue
-
setScaleOrLength
public void setScaleOrLength(long scaleOrLength)
- 指定者:
setScaleOrLength在接口中BindValue
-
writeAsText
public void writeAsText(Message intoMessage)
- 指定者:
writeAsText在接口中BindValue
-
writeAsBinary
public void writeAsBinary(Message intoMessage)
- 指定者:
writeAsBinary在接口中BindValue
-
writeAsQueryAttribute
public void writeAsQueryAttribute(Message intoMessage)
- 指定者:
writeAsQueryAttribute在接口中BindValue
-
-