public class NullParameter extends java.lang.Object implements ParameterHolder, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private static byte[] |
NULL |
private ColumnType |
type |
BINARY_INTRODUCER, QUOTE
Constructor and Description |
---|
NullParameter() |
NullParameter(ColumnType type) |
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
java.lang.String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream os)
Write parameter value.
|
private static final byte[] NULL
private final ColumnType type
public NullParameter()
public NullParameter(ColumnType type)
public void writeTo(PacketOutputStream os) throws java.io.IOException
ParameterHolder
writeTo
in interface ParameterHolder
os
- the stream to write tojava.io.IOException
- when something goes wrongpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream pos)
writeBinary
in interface ParameterHolder
pos
- socket output streampublic ColumnType getColumnType()
getColumnType
in interface ParameterHolder
public java.lang.String toString()
toString
in interface ParameterHolder
toString
in class java.lang.Object
public boolean isNullData()
isNullData
in interface ParameterHolder
public boolean isLongData()
isLongData
in interface ParameterHolder