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 QDateTimeType
NON_NULLABLE
static JExpr
NULL
static QDateTimeType
NULLABLE
-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QDateTimeType(DateTimeDataType dt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JExpr
decodeExpr(JExpr input)
protected void
encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
int
getEncodedFixedSize()
java.lang.Class<?>
getJavaClass()
protected JExpr
getNullLiteral()
protected JExpr
makeConstantExpr(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:
getJavaClass
in classQPrimitiveType<DateTimeDataType>
-
makeConstantExpr
protected JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExpr
in classQType<DateTimeDataType>
-
getNullLiteral
protected JExpr getNullLiteral()
- Specified by:
getNullLiteral
in classQPrimitiveType<DateTimeDataType>
- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSize
in classQType<DateTimeDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExpr
in classQPrimitiveType<DateTimeDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExpr
in classQPrimitiveType<DateTimeDataType>
-
-