public class SerializableParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE
Constructor and Description |
---|
SerializableParameter(Object object,
boolean noBackslashEscapes) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream pos)
Write object to buffer for text protocol.
|
public SerializableParameter(Object object, boolean noBackslashEscapes)
public void writeTo(PacketOutputStream pos) throws IOException
writeTo
in interface ParameterHolder
pos
- the stream to write toIOException
- if error reading streampublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in interface ParameterHolder
IOException
- if error reading streampublic void writeBinary(PacketOutputStream pos) throws IOException
writeBinary
in interface ParameterHolder
pos
- socket output streamIOException
- if socket error occurpublic String toString()
toString
in interface ParameterHolder
toString
in class Object
public ColumnType getColumnType()
getColumnType
in interface ParameterHolder
public boolean isNullData()
isNullData
in interface ParameterHolder
public boolean isLongData()
isLongData
in interface ParameterHolder
Copyright © 2019 mariadb.org. All rights reserved.