Top Fields Constructors Methods
com.mysql.cj

public Class NativeQueryBindValue

extends Object
implements BindValue
Class Inheritance
All Implemented Interfaces
com.mysql.cj.BindValue
Imports
java.io.InputStream, .Reader, java.sql.Blob, .Clob, java.util.Calendar, java.util.concurrent.atomic.AtomicBoolean, java.util.function.Supplier, com.mysql.cj.conf.PropertySet, com.mysql.cj.exceptions.ExceptionFactory, .ExceptionInterceptor, .WrongArgumentException, com.mysql.cj.protocol.Message, .Protocol, .ServerSession, .ValueEncoder, com.mysql.cj.result.Field

Field Summary

Modifier and TypeField and Description
protected long
public Calendar
protected boolean
pack-priv ExceptionInterceptor
private Field
protected boolean
isLoadDataQuery

Is this query a LOAD DATA query?

protected boolean
protected boolean
isNull

NULL indicator

protected boolean
isSet

has this parameter been set?

protected boolean
private String
name

The query attribute name

pack-priv Protocol<?>
pack-priv PropertySet
protected long
pack-priv ServerSession
protected MysqlType
public Object
value

The value to store

protected ValueEncoder

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
public NativeQueryBindValue
clone()

Overrides java.lang.Object.clone.

Implements com.mysql.cj.BindValue.clone.

Creates and returns a copy of this object.

public boolean
public long
getBinaryLength()

Implements com.mysql.cj.BindValue.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
getName()

Implements com.mysql.cj.BindValue.getName.

Gets the name of this query attribute.

public long
public String
getString()

Implements com.mysql.cj.BindValue.getString.

Get a String representation of the value.

public long
getTextLength()

Implements com.mysql.cj.BindValue.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
private boolean
resetToType(MysqlType newTargetType)

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

Implements com.mysql.cj.BindValue.setBinding.

public void
public void
public void
public void
setIsNational(boolean isNational)

Implements com.mysql.cj.BindValue.setIsNational.

public void
setKeepOrigNanos(boolean
the value to set
value
)

Implements com.mysql.cj.BindValue.setKeepOrigNanos.

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

public void
public void
public void
setNull(boolean isNull)

Implements com.mysql.cj.BindValue.setNull.

public void
public void
public void
public void
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boundBeforeExecutionNumback to summary
protected long boundBeforeExecutionNum
calendarback to summary
public Calendar calendar
escapeBytesIfNeededback to summary
protected boolean escapeBytesIfNeeded
exceptionInterceptorback to summary
pack-priv ExceptionInterceptor exceptionInterceptor
fieldback to summary
private Field field
isLoadDataQueryback to summary
protected boolean isLoadDataQuery

Is this query a LOAD DATA query?

isNationalback to summary
protected boolean isNational
isNullback to summary
protected boolean isNull

NULL indicator

isSetback to summary
protected boolean isSet

has this parameter been set?

keepOrigNanosback to summary
protected boolean keepOrigNanos
nameback to summary
private String name

The query attribute name

protocolback to summary
pack-priv Protocol<?> protocol
psetback to summary
pack-priv PropertySet pset
scaleOrLengthback to summary
protected long scaleOrLength
serverSessionback to summary
pack-priv ServerSession serverSession
targetTypeback to summary
protected MysqlType targetType
valueback to summary
public Object value

The value to store

valueEncoderback to summary
protected ValueEncoder valueEncoder

Constructor Detail

NativeQueryBindValueback to summary
public NativeQueryBindValue(Session sess)
NativeQueryBindValueback to summary
protected NativeQueryBindValue(NativeQueryBindValue copyMe)

Method Detail

cloneback to summary
public NativeQueryBindValue clone()

Overrides java.lang.Object.clone.

Implements com.mysql.cj.BindValue.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:NativeQueryBindValue

a clone of this instance.

Annotations
@Override
escapeBytesIfNeededback to summary
public boolean escapeBytesIfNeeded()

Implements com.mysql.cj.BindValue.escapeBytesIfNeeded.

Annotations
@Override
getBinaryLengthback to summary
public long getBinaryLength()

Implements com.mysql.cj.BindValue.getBinaryLength.

Doc from com.mysql.cj.BindValue.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.

Annotations
@Override
getBoundBeforeExecutionNumback to summary
public long getBoundBeforeExecutionNum()

Implements com.mysql.cj.BindValue.getBoundBeforeExecutionNum.

Annotations
@Override
getByteValueback to summary
public byte[] getByteValue()

Implements com.mysql.cj.BindValue.getByteValue.

Annotations
@Override
getCalendarback to summary
public Calendar getCalendar()

Implements com.mysql.cj.BindValue.getCalendar.

Annotations
@Override
getFieldback to summary
public Field getField()

Implements com.mysql.cj.BindValue.getField.

Annotations
@Override
getFieldTypeback to summary
public int getFieldType()

Implements com.mysql.cj.BindValue.getFieldType.

Annotations
@Override
getMysqlTypeback to summary
public MysqlType getMysqlType()

Implements com.mysql.cj.BindValue.getMysqlType.

Annotations
@Override
getNameback to summary
public String getName()

Implements com.mysql.cj.BindValue.getName.

Doc from com.mysql.cj.BindValue.getName.

Gets the name of this query attribute.

Returns:String

the name of this query attribute.

Annotations
@Override
getScaleOrLengthback to summary
public long getScaleOrLength()

Implements com.mysql.cj.BindValue.getScaleOrLength.

Annotations
@Override
getStringback to summary
public String getString()

Implements com.mysql.cj.BindValue.getString.

Doc from com.mysql.cj.BindValue.getString.

Get a String representation of the value.

Returns:String

value as a String

Annotations
@Override
getTextLengthback to summary
public long getTextLength()

Implements com.mysql.cj.BindValue.getTextLength.

Doc from com.mysql.cj.BindValue.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.

Annotations
@Override
getValueback to summary
public Object getValue()

Implements com.mysql.cj.BindValue.getValue.

Annotations
@Override
isNationalback to summary
public boolean isNational()

Implements com.mysql.cj.BindValue.isNational.

Annotations
@Override
isNullback to summary
public boolean isNull()

Implements com.mysql.cj.BindValue.isNull.

Annotations
@Override
isSetback to summary
public boolean isSet()

Implements com.mysql.cj.BindValue.isSet.

Annotations
@Override
isStreamback to summary
public boolean isStream()

Implements com.mysql.cj.BindValue.isStream.

Annotations
@Override
keepOrigNanosback to summary
public boolean keepOrigNanos()

Implements com.mysql.cj.BindValue.keepOrigNanos.

Annotations
@Override
resetback to summary
public void reset()

Implements com.mysql.cj.BindValue.reset.

Annotations
@Override
resetToTypeback to summary
private boolean resetToType(MysqlType newTargetType)
setBindingback to summary
public void setBinding(Object obj, MysqlType type, int numberOfExecutions, AtomicBoolean sendTypesToServer)

Implements com.mysql.cj.BindValue.setBinding.

Annotations
@Override
setCalendarback to summary
public void setCalendar(Calendar cal)

Implements com.mysql.cj.BindValue.setCalendar.

Annotations
@Override
setEscapeBytesIfNeededback to summary
public void setEscapeBytesIfNeeded(boolean val)

Implements com.mysql.cj.BindValue.setEscapeBytesIfNeeded.

Annotations
@Override
setFieldback to summary
public void setField(Field field)

Implements com.mysql.cj.BindValue.setField.

Annotations
@Override
setIsNationalback to summary
public void setIsNational(boolean isNational)

Implements com.mysql.cj.BindValue.setIsNational.

Annotations
@Override
setKeepOrigNanosback to summary
public void setKeepOrigNanos(boolean value)

Implements com.mysql.cj.BindValue.setKeepOrigNanos.

Doc from com.mysql.cj.BindValue.setKeepOrigNanos.

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

Annotations
@Override
setMysqlTypeback to summary
public void setMysqlType(MysqlType type)

Implements com.mysql.cj.BindValue.setMysqlType.

Annotations
@Override
setNameback to summary
public void setName(String name)

Implements com.mysql.cj.BindValue.setName.

Annotations
@Override
setNullback to summary
public void setNull(boolean isNull)

Implements com.mysql.cj.BindValue.setNull.

Annotations
@Override
setScaleOrLengthback to summary
public void setScaleOrLength(long scaleOrLength)

Implements com.mysql.cj.BindValue.setScaleOrLength.

Annotations
@Override
writeAsBinaryback to summary
public void writeAsBinary(Message intoMessage)

Implements com.mysql.cj.BindValue.writeAsBinary.

Annotations
@Override
writeAsQueryAttributeback to summary
public void writeAsQueryAttribute(Message intoMessage)

Implements com.mysql.cj.BindValue.writeAsQueryAttribute.

Annotations
@Override
writeAsTextback to summary
public void writeAsText(Message intoMessage)

Implements com.mysql.cj.BindValue.writeAsText.

Annotations
@Override