public class StringParameter extends Object implements ParameterHolder, Cloneable
| Constructor and Description |
|---|
StringParameter(String str,
boolean noBackslashEscapes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream writer)
Send string value to server in binary format.
|
void |
writeTo(PacketOutputStream os)
Send escaped String to outputStream.
|
void |
writeUnsafeTo(PacketOutputStream os)
Send escaped String to outputStream, without checking outputStream buffer capacity.
|
public StringParameter(String str, boolean noBackslashEscapes) throws SQLException
SQLExceptionpublic void writeTo(PacketOutputStream os)
writeTo in interface ParameterHolderos - outpustream.public void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo in interface ParameterHolderos - outpustream.public long getApproximateTextProtocolLength()
getApproximateTextProtocolLength in interface ParameterHolderpublic void writeBinary(PacketOutputStream writer)
writeBinary in interface ParameterHolderwriter - socket to server.public MariaDbType getMariaDbType()
getMariaDbType in interface ParameterHolderpublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic boolean isLongData()
isLongData in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderCopyright © 2016. All rights reserved.