public class TimeParameter extends Object implements ParameterHolder, Cloneable
Constructor and Description |
---|
TimeParameter(Time time,
Calendar cal,
boolean fractionalSeconds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream writeBuffer)
Write time in binary format.
|
void |
writeTo(PacketOutputStream os)
Write Time parameter to outputStream.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write time parameter to outputStream without checking buffer size.
|
public void writeTo(PacketOutputStream os)
writeTo
in interface ParameterHolder
os
- the stream to write topublic void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo
in interface ParameterHolder
os
- the stream to write topublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in interface ParameterHolder
IOException
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in interface ParameterHolder
writeBuffer
- write bufferpublic MariaDbType getMariaDbType()
getMariaDbType
in interface ParameterHolder
public String toString()
toString
in interface ParameterHolder
toString
in class Object
public boolean isLongData()
isLongData
in interface ParameterHolder
public boolean isNullData()
isNullData
in interface ParameterHolder
Copyright © 2016. All rights reserved.