public class DateParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE
Constructor and Description |
---|
DateParameter(Date date,
TimeZone timeZone,
Options options)
Represents a date, constructed with time in millis since epoch.
|
Modifier and Type | Method and Description |
---|---|
int |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream os)
Write to server OutputStream in text protocol.
|
public void writeTo(PacketOutputStream os) throws IOException
writeTo
in interface ParameterHolder
os
- output bufferIOException
- when something goes wrongpublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength
in interface ParameterHolder
public void writeBinary(PacketOutputStream pos) throws IOException
writeBinary
in interface ParameterHolder
pos
- socket output streamIOException
- if socket error occurpublic ColumnType getColumnType()
getColumnType
in interface ParameterHolder
public String toString()
toString
in interface ParameterHolder
toString
in class Object
public boolean isNullData()
isNullData
in interface ParameterHolder
public boolean isLongData()
isLongData
in interface ParameterHolder
Copyright © 2020 mariadb.com. All rights reserved.