Class DefaultParameter
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.parameters.DefaultParameter
-
- All Implemented Interfaces:
Cloneable
,ParameterHolder
public class DefaultParameter extends Object implements Cloneable, ParameterHolder
-
-
Field Summary
-
Fields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE
-
-
Constructor Summary
Constructors Constructor Description DefaultParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getApproximateTextProtocolLength()
ColumnType
getColumnType()
boolean
isLongData()
boolean
isNullData()
String
toString()
void
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.void
writeTo(PacketOutputStream pos)
Send escaped String to outputStream.
-
-
-
Method Detail
-
writeTo
public void writeTo(PacketOutputStream pos) throws IOException
Send escaped String to outputStream.- Specified by:
writeTo
in interfaceParameterHolder
- Parameters:
pos
- outpustream.- Throws:
IOException
- when something goes wrong
-
getApproximateTextProtocolLength
public long getApproximateTextProtocolLength()
- Specified by:
getApproximateTextProtocolLength
in interfaceParameterHolder
-
writeBinary
public void writeBinary(PacketOutputStream pos) throws IOException
Write data to socket in binary format.- Specified by:
writeBinary
in interfaceParameterHolder
- Parameters:
pos
- socket output stream- Throws:
IOException
- if socket error occur
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnType
in interfaceParameterHolder
-
toString
public String toString()
- Specified by:
toString
in interfaceParameterHolder
- Overrides:
toString
in classObject
-
isNullData
public boolean isNullData()
- Specified by:
isNullData
in interfaceParameterHolder
-
isLongData
public boolean isLongData()
- Specified by:
isLongData
in interfaceParameterHolder
-
-