Package deltix.qsrv.hf.codec.cg
Class QDateTimeType
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<DateTimeDataType>
-
- deltix.qsrv.hf.codec.cg.QDateTimeType
-
public class QDateTimeType extends QPrimitiveType<DateTimeDataType>
-
-
Field Summary
Fields Modifier and Type Field Description static QDateTimeTypeNON_NULLABLEstatic JExprNULLstatic QDateTimeTypeNULLABLE-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQDateTimeType(DateTimeDataType dt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JExprdecodeExpr(JExpr input)protected voidencodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)intgetEncodedFixedSize()java.lang.Class<?>getJavaClass()protected JExprgetNullLiteral()protected JExprmakeConstantExpr(java.lang.Object obj)-
Methods inherited from class deltix.qsrv.hf.codec.cg.QPrimitiveType
checkNull, encodeNullImpl
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, hasConstraint, isNullable, skip, throwNotImplemented
-
-
-
-
Field Detail
-
NON_NULLABLE
public static final QDateTimeType NON_NULLABLE
-
NULLABLE
public static final QDateTimeType NULLABLE
-
NULL
public static final JExpr NULL
-
-
Constructor Detail
-
QDateTimeType
protected QDateTimeType(DateTimeDataType dt)
-
-
Method Detail
-
getJavaClass
public java.lang.Class<?> getJavaClass()
- Specified by:
getJavaClassin classQPrimitiveType<DateTimeDataType>
-
makeConstantExpr
protected JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExprin classQType<DateTimeDataType>
-
getNullLiteral
protected JExpr getNullLiteral()
- Specified by:
getNullLiteralin classQPrimitiveType<DateTimeDataType>- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSizein classQType<DateTimeDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExprin classQPrimitiveType<DateTimeDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExprin classQPrimitiveType<DateTimeDataType>
-
-