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 ParameterHolder
os
- output bufferpublic void writeUnsafeTo(PacketOutputStream os)
writeUnsafeTo
in interface ParameterHolder
os
- output bufferpublic long getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream writeBuffer)
writeBinary
in interface ParameterHolder
writeBuffer
- output 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.