public class SerializableParameter extends Object implements ParameterHolder
Constructor and Description |
---|
SerializableParameter(Object object,
boolean noBackslashEscapes) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream os)
Write data in binary format to buffer.
|
void |
writeTo(PacketOutputStream os)
Write object to buffer for text protocol.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write object to buffer for text protocol without checking buffer size.
|
public SerializableParameter(Object object, boolean noBackslashEscapes) throws IOException
IOException
public void writeTo(PacketOutputStream os) throws IOException
writeTo
in interface ParameterHolder
os
- the stream to write toIOException
- if error reading streampublic void writeUnsafeTo(PacketOutputStream os) throws IOException
writeUnsafeTo
in interface ParameterHolder
os
- 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 os) throws IOException
writeBinary
in interface ParameterHolder
os
- bufferIOException
- exceptionpublic String toString()
toString
in interface ParameterHolder
toString
in class Object
public MariaDbType getMariaDbType()
getMariaDbType
in interface ParameterHolder
public boolean isLongData()
isLongData
in interface ParameterHolder
public boolean isNullData()
isNullData
in interface ParameterHolder
Copyright © 2016. All rights reserved.