public class ZonedDateTimeParameter extends java.lang.Object implements java.lang.Cloneable, ParameterHolder
| Modifier and Type | Field and Description |
|---|---|
private boolean |
fractionalSeconds |
private java.time.ZonedDateTime |
tz |
BINARY_INTRODUCER, QUOTE| Constructor and Description |
|---|
ZonedDateTimeParameter(java.time.ZonedDateTime tz,
java.util.TimeZone timezone,
boolean fractionalSeconds,
Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeLongData() |
int |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isNullData() |
java.lang.String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream pos)
Write timestamps to outputStream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteLongDataprivate final java.time.ZonedDateTime tz
private final boolean fractionalSeconds
public ZonedDateTimeParameter(java.time.ZonedDateTime tz,
java.util.TimeZone timezone,
boolean fractionalSeconds,
Options options)
tz - zone date timetimezone - server session timezonefractionalSeconds - must fractional Seconds be send to database.options - session optionspublic void writeTo(PacketOutputStream pos) throws java.io.IOException
writeTo in interface ParameterHolderpos - the stream to write tojava.io.IOException - when something goes wrongpublic int getApproximateTextProtocolLength()
getApproximateTextProtocolLength in interface ParameterHolderpublic void writeBinary(PacketOutputStream pos) throws java.io.IOException
writeBinary in interface ParameterHolderpos - socket output streamjava.io.IOException - if socket error occurpublic ColumnType getColumnType()
getColumnType in interface ParameterHolderpublic java.lang.String toString()
toString in interface ParameterHoldertoString in class java.lang.Objectpublic boolean isNullData()
isNullData in interface ParameterHolderpublic boolean canBeLongData()
canBeLongData in interface ParameterHolder