public class OffsetTimeParameter extends java.lang.Object implements java.lang.Cloneable, ParameterHolder
| Modifier and Type | Field and Description |
|---|---|
private boolean |
fractionalSeconds |
private java.time.OffsetTime |
time |
BINARY_INTRODUCER, QUOTE| Constructor and Description |
|---|
OffsetTimeParameter(java.time.OffsetTime offsetTime,
java.time.ZoneId serverZoneId,
boolean fractionalSeconds,
Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getApproximateTextProtocolLength() |
ColumnType |
getColumnType() |
boolean |
isLongData() |
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.
|
private java.time.OffsetTime time
private boolean fractionalSeconds
public OffsetTimeParameter(java.time.OffsetTime offsetTime,
java.time.ZoneId serverZoneId,
boolean fractionalSeconds,
Options options)
throws java.sql.SQLException
offsetTime - time with offsetserverZoneId - server session zoneIdfractionalSeconds - must fractional Seconds be send to database.options - session optionsjava.sql.SQLException - if offset cannot be converted to server offsetpublic void writeTo(PacketOutputStream pos) throws java.io.IOException
writeTo in interface ParameterHolderpos - the stream to write tojava.io.IOException - when something goes wrongpublic long getApproximateTextProtocolLength()
throws java.io.IOException
getApproximateTextProtocolLength in interface ParameterHolderjava.io.IOExceptionpublic 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 isLongData()
isLongData in interface ParameterHolder