public class ReaderParameter extends LongDataParameter
| Constructor and Description |
|---|
ReaderParameter(Reader reader,
boolean noBackslashEscapes) |
ReaderParameter(Reader reader,
long length,
boolean noBackslashEscapes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength()
Return approximated data calculated length for rewriting queries
|
MariaDbType |
getMariaDbType() |
void |
sendComLongData(int statementId,
short parameterId,
PacketOutputStream writer)
Send reader in one or many COM_STMT_LONG_DATA.
|
String |
toString() |
void |
writeTo(PacketOutputStream os)
Write reader to database in text format.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write reader to database in text format without checking buffer size.
|
isLongData, isNullDatapublic ReaderParameter(Reader reader, long length, boolean noBackslashEscapes)
reader - reader to writelength - max length to write (can be null)noBackslashEscapes - must backslash be escapepublic ReaderParameter(Reader reader, boolean noBackslashEscapes)
public void writeTo(PacketOutputStream os) throws IOException
os - database outputStreamIOException - if any error occur when reading readerpublic void writeUnsafeTo(PacketOutputStream os) throws IOException
os - database outputStreamIOException - if any error occur when reading readerpublic 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 MariaDbType getMariaDbType()
public String toString()
toString in interface ParameterHoldertoString in class ObjectCopyright © 2017. All rights reserved.