public class DateParameter extends NotLongDataParameterHolder
| 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() |
String |
toString()
Nice formatting of prepared statements using PreparedStatement.toString().
|
void |
writeBinary(PacketOutputStream writeBuffer)
Write to server OutputStream in binary protocol.
|
void |
writeTo(OutputStream os)
Write to server OutputStream in text protocol.
|
isLongDatawriteBufferTypepublic void writeTo(OutputStream os) throws IOException
writeTo in class ParameterHolderos - output bufferIOException - when something goes wrongpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength in class ParameterHolderpublic void writeBinary(PacketOutputStream writeBuffer)
writeBinary in class NotLongDataParameterHolderwriteBuffer - output bufferpublic MariaDbType getMariaDbType()
getMariaDbType in class ParameterHolderpublic String toString()
ParameterHoldertoString in class ParameterHolderCopyright © 2016. All rights reserved.