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
IOExceptionpublic void writeTo(PacketOutputStream os) throws IOException
writeTo in interface ParameterHolderos - the stream to write toIOException - if error reading streampublic void writeUnsafeTo(PacketOutputStream os) throws IOException
writeUnsafeTo in interface ParameterHolderos - the stream to write toIOException - if error reading streampublic long getApproximateTextProtocolLength()
throws IOException
getApproximateTextProtocolLength in interface ParameterHolderIOException - if error reading streampublic void writeBinary(PacketOutputStream os) throws IOException
writeBinary in interface ParameterHolderos - bufferIOException - exceptionpublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic MariaDbType getMariaDbType()
getMariaDbType in interface ParameterHolderpublic boolean isLongData()
isLongData in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderCopyright © 2016. All rights reserved.