Class SerializableParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.SerializableParameter
- All Implemented Interfaces:
Cloneable
,ParameterHolder
-
Field Summary
FieldsFields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Return approximated data calculated length.boolean
boolean
toString()
void
Write data to socket in binary format.private void
void
Write object to buffer for text protocol.
-
Field Details
-
noBackSlashEscapes
private final boolean noBackSlashEscapes -
object
-
loadedStream
private byte[] loadedStream
-
-
Constructor Details
-
SerializableParameter
-
-
Method Details
-
writeTo
Write object to buffer for text protocol.- Specified by:
writeTo
in interfaceParameterHolder
- Parameters:
pos
- the stream to write to- Throws:
IOException
- if error reading stream
-
writeObjectToBytes
- Throws:
IOException
-
getApproximateTextProtocolLength
Return approximated data calculated length.- Specified by:
getApproximateTextProtocolLength
in interfaceParameterHolder
- Returns:
- approximated data length.
- Throws:
IOException
- if error reading stream
-
writeBinary
Write data to socket in binary format.- Specified by:
writeBinary
in interfaceParameterHolder
- Parameters:
pos
- socket output stream- Throws:
IOException
- if socket error occur
-
toString
- Specified by:
toString
in interfaceParameterHolder
- Overrides:
toString
in classObject
-
getColumnType
- Specified by:
getColumnType
in interfaceParameterHolder
-
isNullData
public boolean isNullData()- Specified by:
isNullData
in interfaceParameterHolder
-
isLongData
public boolean isLongData()- Specified by:
isLongData
in interfaceParameterHolder
-