public class OffsetTimeParameter extends Object implements Cloneable, ParameterHolder
BINARY_INTRODUCER, QUOTE
Constructor and Description |
---|
OffsetTimeParameter(OffsetTime offsetTime,
ZoneId serverZoneId,
boolean fractionalSeconds,
Options options)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isLongData() |
boolean |
isNullData() |
String |
toString() |
void |
writeBinary(PacketOutputStream pos)
Write data to socket in binary format.
|
void |
writeTo(PacketOutputStream pos)
Write timestamps to outputStream.
|
public OffsetTimeParameter(OffsetTime offsetTime, ZoneId serverZoneId, boolean fractionalSeconds, Options options) throws SQLException
offsetTime
- time with offsetserverZoneId
- server session zoneIdfractionalSeconds
- must fractional Seconds be send to database.options
- session optionsSQLException
- if offset cannot be converted to server offsetpublic void writeTo(PacketOutputStream pos) throws IOException
writeTo
in interface ParameterHolder
pos
- the stream to write toIOException
- when something goes wrongpublic long getApproximateTextProtocolLength() throws IOException
getApproximateTextProtocolLength
in interface ParameterHolder
IOException
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 © 2017. All rights reserved.