Class ByteParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.ByteParameter
- All Implemented Interfaces:
Cloneable, ParameterHolder
-
Field Summary
Fields inherited from interface ParameterHolder
BINARY_INTRODUCER, QUOTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleantoString()voidWrite data to socket in binary format.voidWrite Byte value to stream using TEXT protocol.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ParameterHolder
writeLongData
-
Constructor Details
-
ByteParameter
public ByteParameter(byte value)
-
-
Method Details
-
writeTo
Write Byte value to stream using TEXT protocol.- Specified by:
writeToin interfaceParameterHolder- Parameters:
os- the stream to write to- Throws:
IOException- if any socket error occur
-
getApproximateTextProtocolLength
public int 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
-
canBeLongData
public boolean canBeLongData()- Specified by:
canBeLongDatain interfaceParameterHolder
-