程序包 com.mysql.cj
接口 BindValue
-
- 所有已知实现类:
NativeQueryBindValue
public interface BindValue
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 BindValueclone()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)
-
-
-
方法详细资料
-
clone
BindValue clone()
-
reset
void reset()
-
isNull
boolean isNull()
-
setNull
void setNull(boolean isNull)
-
isStream
boolean isStream()
-
getMysqlType
MysqlType getMysqlType()
-
setMysqlType
void setMysqlType(MysqlType type)
-
getByteValue
byte[] getByteValue()
-
isSet
boolean isSet()
-
setBinding
void setBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)
-
getCalendar
Calendar getCalendar()
-
setCalendar
void setCalendar(Calendar cal)
-
escapeBytesIfNeeded
boolean escapeBytesIfNeeded()
-
setEscapeBytesIfNeeded
void setEscapeBytesIfNeeded(boolean val)
-
getValue
Object getValue()
-
isNational
boolean isNational()
-
setIsNational
void setIsNational(boolean isNational)
-
getFieldType
int getFieldType()
-
getTextLength
long getTextLength()
Gets the length of this bind value in the text protocol representation.- 返回:
- the expected length, in bytes, of this bind value after being encoded.
-
getBinaryLength
long getBinaryLength()
Gets the length of this bind value in the binary protocol representation.- 返回:
- the expected length, in bytes, of this bind value after being encoded.
-
getBoundBeforeExecutionNum
long getBoundBeforeExecutionNum()
-
getString
String getString()
Get a String representation of the value.- 返回:
- value as a String
-
getField
Field getField()
-
setField
void setField(Field field)
-
keepOrigNanos
boolean keepOrigNanos()
-
setKeepOrigNanos
void setKeepOrigNanos(boolean value)
Should 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.
- 参数:
value-
-
setScaleOrLength
void setScaleOrLength(long scaleOrLength)
-
getScaleOrLength
long getScaleOrLength()
-
getName
String getName()
Gets the name of this query attribute.- 返回:
- the name of this query attribute.
-
setName
void setName(String name)
-
writeAsText
void writeAsText(Message intoMessage)
-
writeAsBinary
void writeAsBinary(Message intoMessage)
-
writeAsQueryAttribute
void writeAsQueryAttribute(Message intoMessage)
-
-