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() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream writeBuffer)
Write time in binary format.
|
void |
writeTo(OutputStream os)
Write parameter value.
|
isLongDatawriteBufferTypepublic void writeTo(OutputStream os) throws IOException
ParameterHolderwriteTo in class ParameterHolderos - the stream to write toIOException - when something goes wrongpublic long getApproximateTextProtocolLength()
throws IOException
getApproximateTextProtocolLength in class ParameterHolderIOExceptionpublic void writeBinary(PacketOutputStream writeBuffer)
writeBinary in class NotLongDataParameterHolderwriteBuffer - write bufferpublic MariaDbType getMariaDbType()
getMariaDbType in class ParameterHolderpublic String toString()
ParameterHoldertoString in class ParameterHolderCopyright © 2016. All rights reserved.