public class DateParameter extends Object implements ParameterHolder, Cloneable
| Constructor and Description |
|---|
DateParameter(Date date,
Calendar cal,
Options options)
Represents a date, constructed with time in millis since epoch.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength() |
MariaDbType |
getMariaDbType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream writeBuffer)
Write to server OutputStream in binary protocol.
|
void |
writeTo(PacketOutputStream os)
Write to server OutputStream in text protocol.
|
void |
writeUnsafeTo(PacketOutputStream os)
Write to server OutputStream in text protocol without checking buffer size.
|
public void writeTo(PacketOutputStream os)
writeTo in interface ParameterHolderos - output bufferpublic void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo in interface ParameterHolderos - output bufferpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength in interface ParameterHolderpublic void writeBinary(PacketOutputStream writeBuffer)
writeBinary in interface ParameterHolderwriteBuffer - output bufferpublic 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.