public class TimestampParameter extends Object implements ParameterHolder, Cloneable
| Constructor and Description |
|---|
TimestampParameter(Timestamp ts,
Calendar cal,
boolean fractionalSeconds,
Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream writeBuffer)
Write timeStamp in binary format.
|
void |
writeTo(PacketOutputStream os)
Write timestamps to outputStream.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write timestamps to outputStream without checking buffer size.
|
public void writeTo(PacketOutputStream os)
writeTo in interface ParameterHolderos - the stream to write topublic void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo in interface ParameterHolderos - the stream to write topublic long getApproximateTextProtocolLength()
throws IOException
getApproximateTextProtocolLength in interface ParameterHolderIOExceptionpublic void writeBinary(PacketOutputStream writeBuffer)
writeBinary in interface ParameterHolderwriteBuffer - buffer to writepublic MariaDbType getMariaDbType()
getMariaDbType in interface ParameterHolderpublic String toString()
toString in interface ParameterHoldertoString in class Objectpublic boolean isLongData()
isLongData in interface ParameterHolderpublic boolean isNullData()
isNullData in interface ParameterHolderCopyright © 2016. All rights reserved.