public class SerializableParameter extends LongDataParameter
| Constructor and Description |
|---|
SerializableParameter(Object object,
boolean noBackslashEscapes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length.
|
MariaDbType |
getMariaDbType() |
void |
sendComLongData(int statementId,
short parameterId,
PacketOutputStream writer)
Send data in one or many COM_STMT_LONG_DATA.
|
String |
toString() |
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.
|
isLongData, isNullDatapublic SerializableParameter(Object object, boolean noBackslashEscapes) throws IOException
IOExceptionpublic void writeTo(PacketOutputStream os) throws IOException
os - the stream to write toIOException - if error reading streampublic void writeUnsafeTo(PacketOutputStream os) throws IOException
os - the stream to write toIOException - if error reading streampublic long getApproximateTextProtocolLength()
throws IOException
IOException - if error reading streampublic void sendComLongData(int statementId,
short parameterId,
PacketOutputStream writer)
throws IOException,
QueryException
sendComLongData in class LongDataParameterstatementId - statement idparameterId - parameter numberwriter - writerIOException - if any connection exception occurQueryException - if query size is to big according to server max_allowed_sizepublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic MariaDbType getMariaDbType()
Copyright © 2017. All rights reserved.