Class QuerydslInstantType
java.lang.Object
com.querydsl.sql.types.AbstractType<T>
com.querydsl.sql.types.AbstractDateTimeType<T>
com.querydsl.sql.types.AbstractJSR310DateTimeType<Instant>
com.querydsl.sql.types.JSR310InstantType
com.evolveum.midpoint.repo.sqlbase.querydsl.QuerydslInstantType
- All Implemented Interfaces:
com.querydsl.sql.types.Type<Instant>
public class QuerydslInstantType
extends com.querydsl.sql.types.JSR310InstantType
Instant converter for Querydsl.
Just like the superclass, but does NOT use calendar parameter for get/set values.
It is important to use one version consistently, if mixing prepared statements using version with and without calendar parameter, results can be off by default timezone offset. This works for us using JDBC - the question is: What method is used by ORM/JPA?
-
Field Summary
Fields inherited from class com.querydsl.sql.types.AbstractDateTimeType
dateFormatter, dateTimeFormatter, timeFormatter
-
Constructor Summary
-
Method Summary
Methods inherited from class com.querydsl.sql.types.JSR310InstantType
getLiteral, getReturnedClass
Methods inherited from class com.querydsl.sql.types.AbstractDateTimeType
utc
Methods inherited from class com.querydsl.sql.types.AbstractType
getSQLTypes
-
Constructor Details
-
QuerydslInstantType
public QuerydslInstantType()
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfacecom.querydsl.sql.types.Type<Instant>
- Overrides:
getValue
in classcom.querydsl.sql.types.JSR310InstantType
- Throws:
SQLException
-
setValue
- Specified by:
setValue
in interfacecom.querydsl.sql.types.Type<Instant>
- Overrides:
setValue
in classcom.querydsl.sql.types.JSR310InstantType
- Throws:
SQLException
-