public class TimeParameter extends NotLongDataParameterHolder
Constructor and Description |
---|
TimeParameter(Time time,
Calendar cal,
boolean fractionalSeconds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
void |
writeBinary(PacketOutputStream writeBuffer)
Write time in binary format.
|
void |
writeTo(OutputStream os)
Write parameter value.
|
isLongData, isNotLongData, isNullParameter
toString, writeBufferType
public void writeTo(OutputStream os) throws IOException
ParameterHolder
writeTo
in class ParameterHolder
os
- the stream to write toIOException
- when something goes wrongpublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in class ParameterHolder
IOException
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in class NotLongDataParameterHolder
writeBuffer
- write bufferpublic MariaDbType getMariaDbType()
getMariaDbType
in class ParameterHolder
Copyright © 2016. All rights reserved.