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.JSR310InstantTypeInstant 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?
-
-
Constructor Summary
Constructors Constructor Description QuerydslInstantType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable InstantgetValue(ResultSet rs, int startIndex)voidsetValue(PreparedStatement st, int startIndex, Instant value)
-
-
-
Method Detail
-
getValue
@Nullable public @Nullable Instant getValue(ResultSet rs, int startIndex) throws SQLException
- Specified by:
getValuein interfacecom.querydsl.sql.types.Type<Instant>- Overrides:
getValuein classcom.querydsl.sql.types.JSR310InstantType- Throws:
SQLException
-
setValue
public void setValue(PreparedStatement st, int startIndex, Instant value) throws SQLException
- Specified by:
setValuein interfacecom.querydsl.sql.types.Type<Instant>- Overrides:
setValuein classcom.querydsl.sql.types.JSR310InstantType- Throws:
SQLException
-
-