Class IntParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.IntParameter
- All Implemented Interfaces:
Cloneable,ParameterHolder
-
Field Summary
FieldsFields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbooleantoString()voidWrite data to socket in binary format.voidWrite parameter value.
-
Field Details
-
value
private final int value
-
-
Constructor Details
-
IntParameter
public IntParameter(int value)
-
-
Method Details
-
writeTo
Description copied from interface:ParameterHolderWrite parameter value.- Specified by:
writeToin interfaceParameterHolder- Parameters:
pos- the stream to write to- Throws:
IOException- when something goes wrong
-
getApproximateTextProtocolLength
public long getApproximateTextProtocolLength()- Specified by:
getApproximateTextProtocolLengthin interfaceParameterHolder
-
writeBinary
Write data to socket in binary format.- Specified by:
writeBinaryin interfaceParameterHolder- Parameters:
pos- socket output stream- Throws:
IOException- if socket error occur
-
getColumnType
- Specified by:
getColumnTypein interfaceParameterHolder
-
toString
- Specified by:
toStringin interfaceParameterHolder- Overrides:
toStringin classObject
-
isNullData
public boolean isNullData()- Specified by:
isNullDatain interfaceParameterHolder
-
isLongData
public boolean isLongData()- Specified by:
isLongDatain interfaceParameterHolder
-