Interface ParameterHolder
-
- All Known Implementing Classes:
BigDecimalParameter,BooleanParameter,ByteArrayParameter,ByteParameter,DateParameter,DefaultParameter,DoubleParameter,FloatParameter,IntParameter,LocalTimeParameter,LongParameter,NullParameter,OffsetTimeParameter,ReaderParameter,SerializableParameter,ShortParameter,StreamParameter,StringParameter,TimeParameter,TimestampParameter,ZonedDateTimeParameter
public interface ParameterHolder
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]BINARY_INTRODUCERstatic byteQUOTE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancanBeLongData()intgetApproximateTextProtocolLength()ColumnTypegetColumnType()booleanisNullData()StringtoString()voidwriteBinary(PacketOutputStream pos)default voidwriteLongData(PacketOutputStream pos)voidwriteTo(PacketOutputStream os)Write parameter value.
-
-
-
Field Detail
-
BINARY_INTRODUCER
static final byte[] BINARY_INTRODUCER
-
QUOTE
static final byte QUOTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeTo
void writeTo(PacketOutputStream os) throws IOException
Write parameter value.- Parameters:
os- the stream to write to- Throws:
IOException- when something goes wrong
-
writeBinary
void writeBinary(PacketOutputStream pos) throws IOException
- Throws:
IOException
-
writeLongData
default void writeLongData(PacketOutputStream pos) throws IOException
- Throws:
IOException
-
getApproximateTextProtocolLength
int getApproximateTextProtocolLength() throws IOException- Throws:
IOException
-
isNullData
boolean isNullData()
-
getColumnType
ColumnType getColumnType()
-
canBeLongData
boolean canBeLongData()
-
-