Class OffsetTimeParameter
java.lang.Object
org.mariadb.jdbc.internal.com.send.parameters.OffsetTimeParameter
- All Implemented Interfaces:
Cloneable
,ParameterHolder
-
Field Summary
FieldsFields inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
BINARY_INTRODUCER, QUOTE
-
Constructor Summary
ConstructorsConstructorDescriptionOffsetTimeParameter
(OffsetTime offsetTime, TimeZone timezone, boolean fractionalSeconds, Options options) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
toString()
void
Write data to socket in binary format.void
Write timestamps to outputStream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.internal.com.send.parameters.ParameterHolder
writeLongData
-
Field Details
-
time
-
fractionalSeconds
private boolean fractionalSeconds
-
-
Constructor Details
-
OffsetTimeParameter
public OffsetTimeParameter(OffsetTime offsetTime, TimeZone timezone, boolean fractionalSeconds, Options options) throws SQLException Constructor.- Parameters:
offsetTime
- time with offsettimezone
- server session zoneIdfractionalSeconds
- must fractional Seconds be send to database.options
- session options- Throws:
SQLException
- if offset cannot be converted to server offset
-
-
Method Details
-
writeTo
Write timestamps to outputStream.- Specified by:
writeTo
in interfaceParameterHolder
- Parameters:
pos
- the stream to write to- Throws:
IOException
- when something goes wrong
-
getApproximateTextProtocolLength
public int getApproximateTextProtocolLength()- Specified by:
getApproximateTextProtocolLength
in interfaceParameterHolder
-
writeBinary
Write data to socket in binary format.- Specified by:
writeBinary
in interfaceParameterHolder
- Parameters:
pos
- socket output stream- Throws:
IOException
- if socket error occur
-
getColumnType
- Specified by:
getColumnType
in interfaceParameterHolder
-
toString
- Specified by:
toString
in interfaceParameterHolder
- Overrides:
toString
in classObject
-
isNullData
public boolean isNullData()- Specified by:
isNullData
in interfaceParameterHolder
-
canBeLongData
public boolean canBeLongData()- Specified by:
canBeLongData
in interfaceParameterHolder
-