Modifier and Type | Field and Description |
---|---|
protected long |
boundBeforeExecutionNum |
java.util.Calendar |
calendar |
protected boolean |
escapeBytesIfNeeded |
protected boolean |
isLoadDataQuery
Is this query a LOAD DATA query?
|
protected boolean |
isNational |
protected boolean |
isNull
NULL indicator
|
protected boolean |
isSet
has this parameter been set?
|
protected boolean |
keepOrigNanos |
protected long |
scaleOrLength |
protected MysqlType |
targetType |
java.lang.Object |
value
The value to store
|
protected ValueEncoder |
valueEncoder |
Modifier | Constructor and Description |
---|---|
protected |
NativeQueryBindValue(NativeQueryBindValue copyMe) |
|
NativeQueryBindValue(Session sess) |
Modifier and Type | Method and Description |
---|---|
NativeQueryBindValue |
clone() |
boolean |
escapeBytesIfNeeded() |
long |
getBinaryLength()
Gets the length of this bind value in the binary protocol representation.
|
long |
getBoundBeforeExecutionNum() |
byte[] |
getByteValue() |
java.util.Calendar |
getCalendar() |
Field |
getField() |
int |
getFieldType() |
MysqlType |
getMysqlType() |
java.lang.String |
getName()
Gets the name of this query attribute.
|
long |
getScaleOrLength() |
java.lang.String |
getString()
Get a String representation of the value.
|
long |
getTextLength()
Gets the length of this bind value in the text protocol representation.
|
java.lang.Object |
getValue() |
boolean |
isNational() |
boolean |
isNull() |
boolean |
isSet() |
boolean |
isStream() |
boolean |
keepOrigNanos() |
void |
reset() |
void |
setBinding(java.lang.Object obj,
MysqlType type,
int numberOfExecutions,
java.util.concurrent.atomic.AtomicBoolean sendTypesToServer) |
void |
setCalendar(java.util.Calendar cal) |
void |
setEscapeBytesIfNeeded(boolean val) |
void |
setField(Field field) |
void |
setIsNational(boolean isNational) |
void |
setKeepOrigNanos(boolean value)
Should the value keep original fractional seconds ignoring sendFractionalSeconds and sendFractionalSecondsForTime?
|
void |
setMysqlType(MysqlType type) |
void |
setName(java.lang.String name) |
void |
setNull(boolean isNull) |
void |
setScaleOrLength(long scaleOrLength) |
void |
writeAsBinary(Message intoMessage) |
void |
writeAsQueryAttribute(Message intoMessage) |
void |
writeAsText(Message intoMessage) |
protected boolean isNull
protected boolean isNational
protected MysqlType targetType
public java.lang.Object value
protected boolean isSet
public java.util.Calendar calendar
protected boolean escapeBytesIfNeeded
protected boolean isLoadDataQuery
protected boolean keepOrigNanos
protected ValueEncoder valueEncoder
protected long scaleOrLength
protected long boundBeforeExecutionNum
public NativeQueryBindValue(Session sess)
protected NativeQueryBindValue(NativeQueryBindValue copyMe)
public NativeQueryBindValue clone()
public void setBinding(java.lang.Object obj, MysqlType type, int numberOfExecutions, java.util.concurrent.atomic.AtomicBoolean sendTypesToServer)
setBinding
in interface BindValue
public byte[] getByteValue()
getByteValue
in interface BindValue
public boolean isNational()
isNational
in interface BindValue
public void setIsNational(boolean isNational)
setIsNational
in interface BindValue
public boolean keepOrigNanos()
keepOrigNanos
in interface BindValue
public void setKeepOrigNanos(boolean value)
BindValue
If the value is a part of key for UpdatableResultSet updater, it should keep original milliseconds.
setKeepOrigNanos
in interface BindValue
public MysqlType getMysqlType()
getMysqlType
in interface BindValue
public void setMysqlType(MysqlType type)
setMysqlType
in interface BindValue
public boolean escapeBytesIfNeeded()
escapeBytesIfNeeded
in interface BindValue
public void setEscapeBytesIfNeeded(boolean val)
setEscapeBytesIfNeeded
in interface BindValue
public java.util.Calendar getCalendar()
getCalendar
in interface BindValue
public void setCalendar(java.util.Calendar cal)
setCalendar
in interface BindValue
public int getFieldType()
getFieldType
in interface BindValue
public long getTextLength()
BindValue
getTextLength
in interface BindValue
public long getBinaryLength()
BindValue
getBinaryLength
in interface BindValue
public long getBoundBeforeExecutionNum()
getBoundBeforeExecutionNum
in interface BindValue
public java.lang.String getString()
BindValue
public long getScaleOrLength()
getScaleOrLength
in interface BindValue
public void setScaleOrLength(long scaleOrLength)
setScaleOrLength
in interface BindValue
public java.lang.String getName()
BindValue
public void writeAsText(Message intoMessage)
writeAsText
in interface BindValue
public void writeAsBinary(Message intoMessage)
writeAsBinary
in interface BindValue
public void writeAsQueryAttribute(Message intoMessage)
writeAsQueryAttribute
in interface BindValue