public class ByteArrayParameter extends NotLongDataParameterHolder
Constructor and Description |
---|
ByteArrayParameter(byte[] bytes,
boolean noBackslashEscapes) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream writeBuffer) |
void |
writeTo(OutputStream os)
Write parameter value.
|
isLongData, isNotLongData, isNullParameter
writeBufferType
public ByteArrayParameter(byte[] bytes, boolean noBackslashEscapes)
public void writeTo(OutputStream os) throws IOException
ParameterHolder
writeTo
in class ParameterHolder
os
- the stream to write toIOException
- when something goes wrongpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in class ParameterHolder
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in class NotLongDataParameterHolder
public MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
public String toString()
ParameterHolder
toString
in class ParameterHolder
Copyright © 2016. All rights reserved.