Class IntParameter
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.parameters.IntParameter
-
- All Implemented Interfaces:
java.lang.Cloneable
,ParameterHolder
public class IntParameter extends java.lang.Object implements java.lang.Cloneable, ParameterHolder
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
-
Fields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE
-
-
Constructor Summary
Constructors Constructor Description IntParameter(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 pos)
Write parameter value.
-
-
-
Method Detail
-
writeTo
public void writeTo(PacketOutputStream pos) throws java.io.IOException
Description copied from interface:ParameterHolder
Write parameter value.- Specified by:
writeTo
in interfaceParameterHolder
- Parameters:
pos
- the stream to write to- Throws:
java.io.IOException
- when something goes wrong
-
getApproximateTextProtocolLength
public int getApproximateTextProtocolLength()
- Specified by:
getApproximateTextProtocolLength
in interfaceParameterHolder
-
writeBinary
public void writeBinary(PacketOutputStream pos) throws java.io.IOException
Write data to socket in binary format.- Specified by:
writeBinary
in interfaceParameterHolder
- Parameters:
pos
- socket output stream- Throws:
java.io.IOException
- if socket error occur
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnType
in interfaceParameterHolder
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceParameterHolder
- Overrides:
toString
in classjava.lang.Object
-
isNullData
public boolean isNullData()
- Specified by:
isNullData
in interfaceParameterHolder
-
isLongData
public boolean isLongData()
- Specified by:
isLongData
in interfaceParameterHolder
-
-