Package com.mysql.cj
Class ServerPreparedQueryBindValue
java.lang.Object
com.mysql.cj.ClientPreparedQueryBindValue
com.mysql.cj.ServerPreparedQueryBindValue
- All Implemented Interfaces:
BindValue
public class ServerPreparedQueryBindValue extends ClientPreparedQueryBindValue implements BindValue
-
Field Summary
Fields Modifier and Type Field Description longboundBeforeExecutionNumintbufferTypejava.util.Calendarcalendarprotected java.lang.StringcharEncodingFields inherited from class com.mysql.cj.ClientPreparedQueryBindValue
isNull, isSet, isStream, origValue, parameterType, streamLength, value -
Constructor Summary
Constructors Constructor Description ServerPreparedQueryBindValue(java.util.TimeZone defaultTimeZone, java.util.TimeZone connectionTimeZone, PropertySet pset) -
Method Summary
Modifier and Type Method Description ServerPreparedQueryBindValueclone()longgetBoundLength()byte[]getByteValue()voidreset()booleanresetToType(int bufType, long numberOfExecutions)Reset a bind value to be used for a new value of the given type.voidstoreBinding(NativePacketPayload intoPacket, boolean isLoadDataQuery, java.lang.String characterEncoding, ExceptionInterceptor interceptor)java.lang.StringtoString()java.lang.StringtoString(boolean quoteIfNeeded)Methods inherited from class com.mysql.cj.ClientPreparedQueryBindValue
getMysqlType, getOrigByteValue, getStreamLength, getStreamValue, isNull, isSet, isStream, setByteValue, setIsStream, setMysqlType, setNull, setOrigByteValue, setStreamValueMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.mysql.cj.BindValue
getMysqlType, getOrigByteValue, getStreamLength, getStreamValue, isNull, isSet, isStream, setByteValue, setIsStream, setMysqlType, setNull, setOrigByteValue, setStreamValue
-
Field Details
-
boundBeforeExecutionNum
public long boundBeforeExecutionNum -
bufferType
public int bufferType -
calendar
public java.util.Calendar calendar -
charEncoding
protected java.lang.String charEncoding
-
-
Constructor Details
-
ServerPreparedQueryBindValue
public ServerPreparedQueryBindValue(java.util.TimeZone defaultTimeZone, java.util.TimeZone connectionTimeZone, PropertySet pset)
-
-
Method Details
-
clone
- Specified by:
clonein interfaceBindValue- Overrides:
clonein classClientPreparedQueryBindValue
-
reset
public void reset()- Specified by:
resetin interfaceBindValue- Overrides:
resetin classClientPreparedQueryBindValue
-
resetToType
public boolean resetToType(int bufType, long numberOfExecutions)Reset a bind value to be used for a new value of the given type.- Parameters:
bufType- MysqlType.FIELD_TYPE_*numberOfExecutions- current number of PreparedQuery executions- Returns:
- true if we need to send/resend types to the server
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(boolean quoteIfNeeded) -
getBoundLength
public long getBoundLength() -
storeBinding
public void storeBinding(NativePacketPayload intoPacket, boolean isLoadDataQuery, java.lang.String characterEncoding, ExceptionInterceptor interceptor) -
getByteValue
public byte[] getByteValue()- Specified by:
getByteValuein interfaceBindValue- Overrides:
getByteValuein classClientPreparedQueryBindValue
-