Top Methods
com.mysql.cj

public Interface BindValue

Known Direct Implementers
com.mysql.cj.NativeQueryBindValue
Imports
java.util.Calendar, java.util.concurrent.atomic.AtomicBoolean, com.mysql.cj.protocol.Message, com.mysql.cj.result.Field

Method Summary

Modifier and TypeMethod and Description
public BindValue
public boolean
public long

Returns:

the expected length, in bytes, of this bind value after being encoded.
getBinaryLength
()

Gets the length of this bind value in the binary protocol representation.

public long
public byte[]
public Calendar
public Field
public int
public MysqlType
public String

Returns:

the name of this query attribute.
getName
()

Gets the name of this query attribute.

public long
public String

Returns:

value as a String
getString
()

Get a String representation of the value.

public long

Returns:

the expected length, in bytes, of this bind value after being encoded.
getTextLength
()

Gets the length of this bind value in the text protocol representation.

public Object
public boolean
public boolean
public boolean
public boolean
public boolean
public void
public void
setBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)

public void
public void
public void
setField(Field field)

public void
setIsNational(boolean isNational)

public void
setKeepOrigNanos(boolean
the value to set
value
)

Should the value keep original fractional seconds ignoring sendFractionalSeconds and sendFractionalSecondsForTime?

public void
public void
public void
setNull(boolean isNull)

public void
setScaleOrLength(long scaleOrLength)

public void
writeAsBinary(Message intoMessage)

public void
public void
writeAsText(Message intoMessage)

Method Detail

cloneback to summary
public BindValue clone()
escapeBytesIfNeededback to summary
public boolean escapeBytesIfNeeded()
getBinaryLengthback to summary
public long getBinaryLength()

Gets the length of this bind value in the binary protocol representation.

Returns:long

the expected length, in bytes, of this bind value after being encoded.

getBoundBeforeExecutionNumback to summary
public long getBoundBeforeExecutionNum()
getByteValueback to summary
public byte[] getByteValue()
getCalendarback to summary
public Calendar getCalendar()
getFieldback to summary
public Field getField()
getFieldTypeback to summary
public int getFieldType()
getMysqlTypeback to summary
public MysqlType getMysqlType()
getNameback to summary
public String getName()

Gets the name of this query attribute.

Returns:String

the name of this query attribute.

getScaleOrLengthback to summary
public long getScaleOrLength()
getStringback to summary
public String getString()

Get a String representation of the value.

Returns:String

value as a String

getTextLengthback to summary
public long getTextLength()

Gets the length of this bind value in the text protocol representation.

Returns:long

the expected length, in bytes, of this bind value after being encoded.

getValueback to summary
public Object getValue()
isNationalback to summary
public boolean isNational()
isNullback to summary
public boolean isNull()
isSetback to summary
public boolean isSet()
isStreamback to summary
public boolean isStream()
keepOrigNanosback to summary
public boolean keepOrigNanos()
resetback to summary
public void reset()
setBindingback to summary
public void setBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)
setCalendarback to summary
public void setCalendar(Calendar cal)
setEscapeBytesIfNeededback to summary
public void setEscapeBytesIfNeeded(boolean val)
setFieldback to summary
public void setField(Field field)
setIsNationalback to summary
public void setIsNational(boolean isNational)
setKeepOrigNanosback to summary
public 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.

Parameters
value:boolean

the value to set

setMysqlTypeback to summary
public void setMysqlType(MysqlType type)
setNameback to summary
public void setName(String name)
setNullback to summary
public void setNull(boolean isNull)
setScaleOrLengthback to summary
public void setScaleOrLength(long scaleOrLength)
writeAsBinaryback to summary
public void writeAsBinary(Message intoMessage)
writeAsQueryAttributeback to summary
public void writeAsQueryAttribute(Message intoMessage)
writeAsTextback to summary
public void writeAsText(Message intoMessage)