org.mariadb.jdbc.internal.com.send.parameters
Class ByteArrayParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.ByteArrayParameter
- All Implemented Interfaces:
- Cloneable, ParameterHolder
public class ByteArrayParameter
- extends Object
- implements Cloneable, ParameterHolder
ByteArrayParameter
public ByteArrayParameter(byte[] bytes,
boolean noBackslashEscapes)
writeTo
public void writeTo(PacketOutputStream pos)
throws IOException
- Write data to socket in text format.
- Specified by:
writeTo in interface ParameterHolder
- Parameters:
pos - socket output stream
- Throws:
IOException - if socket error occur
getApproximateTextProtocolLength
public long getApproximateTextProtocolLength()
- Specified by:
getApproximateTextProtocolLength in interface ParameterHolder
writeBinary
public void writeBinary(PacketOutputStream pos)
throws IOException
- Write data to socket in binary format.
- Specified by:
writeBinary in interface ParameterHolder
- Parameters:
pos - socket output stream
- Throws:
IOException - if socket error occur
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnType in interface ParameterHolder
toString
public String toString()
- Specified by:
toString in interface ParameterHolder- Overrides:
toString in class Object
isNullData
public boolean isNullData()
- Specified by:
isNullData in interface ParameterHolder
isLongData
public boolean isLongData()
- Specified by:
isLongData in interface ParameterHolder
Copyright © 2017. All rights reserved.