public class ReaderParameter extends Object implements Cloneable, LongDataParameterHolder
BLOB_STREAM_READ_BUF_SIZEBINARY_INTRODUCER, QUOTE| 构造器和说明 |
|---|
ReaderParameter(Clob clob,
long length,
boolean noBackslashEscapes) |
ReaderParameter(Reader reader,
boolean noBackslashEscapes) |
ReaderParameter(Reader reader,
long length,
boolean noBackslashEscapes)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getApproximateTextProtocolLength()
Return approximated data calculated length for rewriting queries.
|
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
boolean |
writeLongData(PacketOutputStream writer,
Options options,
int statementId,
short paramIndex)
Read the data in Reader and send Long Data Packet in batches according to the size of blobSendChunkSize
|
boolean |
writePieceData(PacketOutputStream pos,
boolean first,
Options options)
Never used
|
void |
writeTo(PacketOutputStream pos)
Write reader to database in text format.
|
public ReaderParameter(Reader reader, long length, boolean noBackslashEscapes)
reader - reader to writelength - max length to write (can be null)noBackslashEscapes - must backslash be escapepublic ReaderParameter(Clob clob, long length, boolean noBackslashEscapes)
public ReaderParameter(Reader reader, boolean noBackslashEscapes)
public void writeTo(PacketOutputStream pos) throws IOException, SQLException
writeTo 在接口中 ParameterHolderpos - database outputStreamIOException - if any error occur when reading readerSQLExceptionpublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength 在接口中 ParameterHolderpublic void writeBinary(PacketOutputStream pos) throws IOException, SQLException
writeBinary 在接口中 ParameterHolderpos - socket output streamIOException - if socket error occurSQLExceptionpublic ColumnType getColumnType()
getColumnType 在接口中 ParameterHolderpublic String toString()
toString 在接口中 ParameterHoldertoString 在类中 Objectpublic boolean isNullData()
isNullData 在接口中 ParameterHolderpublic boolean isLongData()
isLongData 在接口中 ParameterHolderpublic boolean writePieceData(PacketOutputStream pos, boolean first, Options options) throws IOException
writePieceData 在接口中 LongDataParameterHolderpos - first - options - IOExceptionpublic boolean writeLongData(PacketOutputStream writer, Options options, int statementId, short paramIndex) throws IOException, SQLException
writeLongData 在接口中 LongDataParameterHolderwriter - PacketOutputStream with socketoptions - Connection optionsstatementId - Current statement idparamIndex - Current parameter indexIOExceptionSQLExceptionCopyright © 2024 oceanbase.com. All rights reserved.