Class SerializableParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.SerializableParameter
- All Implemented Interfaces:
Cloneable, ParameterHolder
-
Field Summary
Fields inherited from interface ParameterHolder
BINARY_INTRODUCER, QUOTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturn approximated data calculated length.booleantoString()voidWrite data to socket in binary format.voidWrite object to buffer for text protocol.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ParameterHolder
writeLongData
-
Constructor Details
-
SerializableParameter
-
-
Method Details
-
writeTo
Write object to buffer for text protocol.- Specified by:
writeToin interfaceParameterHolder- Parameters:
pos- the stream to write to- Throws:
IOException- if error reading stream
-
getApproximateTextProtocolLength
Return approximated data calculated length.- Specified by:
getApproximateTextProtocolLengthin interfaceParameterHolder- Returns:
- approximated data length.
- Throws:
IOException- if error reading stream
-
writeBinary
Write data to socket in binary format.- Specified by:
writeBinaryin interfaceParameterHolder- Parameters:
pos- socket output stream- Throws:
IOException- if socket error occur
-
toString
- Specified by:
toStringin interfaceParameterHolder- Overrides:
toStringin classObject
-
getColumnType
- Specified by:
getColumnTypein interfaceParameterHolder
-
isNullData
public boolean isNullData()- Specified by:
isNullDatain interfaceParameterHolder
-
canBeLongData
public boolean canBeLongData()- Specified by:
canBeLongDatain interfaceParameterHolder
-