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
SQLException
public void writeTo(PacketOutputStream os)
writeTo
in interface ParameterHolder
os
- outpustream.public void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo
in interface ParameterHolder
os
- outpustream.public long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream writer)
writeBinary
in interface ParameterHolder
writer
- socket to server.public MariaDbType getMariaDbType()
getMariaDbType
in interface ParameterHolder
public String toString()
toString
in interface ParameterHolder
toString
in class Object
public boolean isLongData()
isLongData
in interface ParameterHolder
public boolean isNullData()
isNullData
in interface ParameterHolder
Copyright © 2016. All rights reserved.