Class OffsetTimeParameter
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.parameters.OffsetTimeParameter
-
- All Implemented Interfaces:
Cloneable,ParameterHolder
public class OffsetTimeParameter extends Object implements Cloneable, ParameterHolder
-
-
Field Summary
-
Fields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE
-
-
Constructor Summary
Constructors Constructor Description OffsetTimeParameter(OffsetTime offsetTime, ZoneId serverZoneId, boolean fractionalSeconds, Options options)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetApproximateTextProtocolLength()ColumnTypegetColumnType()booleanisLongData()booleanisNullData()StringtoString()voidwriteBinary(PacketOutputStream pos)Write data to socket in binary format.voidwriteTo(PacketOutputStream pos)Write timestamps to outputStream.
-
-
-
Constructor Detail
-
OffsetTimeParameter
public OffsetTimeParameter(OffsetTime offsetTime, ZoneId serverZoneId, boolean fractionalSeconds, Options options) throws SQLException
Constructor.- Parameters:
offsetTime- time with offsetserverZoneId- server session zoneIdfractionalSeconds- must fractional Seconds be send to database.options- session options- Throws:
SQLException- if offset cannot be converted to server offset
-
-
Method Detail
-
writeTo
public void writeTo(PacketOutputStream pos) throws IOException
Write timestamps to outputStream.- Specified by:
writeToin interfaceParameterHolder- Parameters:
pos- the stream to write to- Throws:
IOException- when something goes wrong
-
getApproximateTextProtocolLength
public long getApproximateTextProtocolLength()
- Specified by:
getApproximateTextProtocolLengthin interfaceParameterHolder
-
writeBinary
public void writeBinary(PacketOutputStream pos) throws IOException
Write data to socket in binary format.- Specified by:
writeBinaryin interfaceParameterHolder- Parameters:
pos- socket output stream- Throws:
IOException- if socket error occur
-
getColumnType
public ColumnType getColumnType()
- Specified by:
getColumnTypein interfaceParameterHolder
-
toString
public String toString()
- Specified by:
toStringin interfaceParameterHolder- Overrides:
toStringin classObject
-
isNullData
public boolean isNullData()
- Specified by:
isNullDatain interfaceParameterHolder
-
isLongData
public boolean isLongData()
- Specified by:
isLongDatain interfaceParameterHolder
-
-