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 long
boundBeforeExecutionNum
int
bufferType
java.util.Calendar
calendar
protected java.lang.String
charEncoding
Fields 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 ServerPreparedQueryBindValue
clone()
long
getBoundLength()
byte[]
getByteValue()
void
reset()
boolean
resetToType(int bufType, long numberOfExecutions)
Reset a bind value to be used for a new value of the given type.void
storeBinding(NativePacketPayload intoPacket, boolean isLoadDataQuery, java.lang.String characterEncoding, ExceptionInterceptor interceptor)
java.lang.String
toString()
java.lang.String
toString(boolean quoteIfNeeded)
Methods inherited from class com.mysql.cj.ClientPreparedQueryBindValue
getMysqlType, getOrigByteValue, getStreamLength, getStreamValue, isNull, isSet, isStream, setByteValue, setIsStream, setMysqlType, setNull, setOrigByteValue, setStreamValue
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
clone
in interfaceBindValue
- Overrides:
clone
in classClientPreparedQueryBindValue
-
reset
public void reset()- Specified by:
reset
in interfaceBindValue
- Overrides:
reset
in 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:
toString
in 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:
getByteValue
in interfaceBindValue
- Overrides:
getByteValue
in classClientPreparedQueryBindValue
-