public class SerializableParameter extends LongDataParameterHolder
mariaDbCharset
Constructor and Description |
---|
SerializableParameter(Object object,
boolean noBackslashEscapes) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
MariaDbType |
getMariaDbType() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream os)
Write data in binary format to buffer.
|
void |
writeTo(OutputStream os)
Write object to buffer for text protocol.
|
isLongData, isNotLongData, isNullParameter, setMariaDbServerCharset
writeBufferType
public SerializableParameter(Object object, boolean noBackslashEscapes) throws IOException
IOException
public void writeTo(OutputStream os) throws IOException
writeTo
in class ParameterHolder
os
- the stream to write toIOException
- if error reading streampublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in class ParameterHolder
IOException
- if error reading streampublic void writeBinary(PacketOutputStream os) throws IOException
writeBinary
in class LongDataParameterHolder
os
- bufferIOException
- exceptionpublic String toString()
ParameterHolder
toString
in class ParameterHolder
public MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
Copyright © 2016. All rights reserved.