Package deltix.qsrv.hf.codec.cg
Class QStringType
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<VarcharDataType>
-
- deltix.qsrv.hf.codec.cg.QStringType
-
public class QStringType extends QPrimitiveType<VarcharDataType>
-
-
Field Summary
Fields Modifier and Type Field Description static QStringTypeNON_NULLABLEstatic QStringTypeNULLABLE-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQStringType(VarcharDataType 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)protected voidencodeNullImpl(JExpr output, JCompoundStatement addTo)intgetEncodedFixedSize()java.lang.Class<?>getJavaClass()protected JExprgetNullLiteral()JExprmakeConstantExpr(java.lang.Object obj)voidskip(JExpr input, JCompoundStatement addTo)-
Methods inherited from class deltix.qsrv.hf.codec.cg.QPrimitiveType
checkNull
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, hasConstraint, isNullable, throwNotImplemented
-
-
-
-
Field Detail
-
NON_NULLABLE
public static final QStringType NON_NULLABLE
-
NULLABLE
public static final QStringType NULLABLE
-
-
Constructor Detail
-
QStringType
protected QStringType(VarcharDataType dt)
-
-
Method Detail
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSizein classQType<VarcharDataType>
-
skip
public void skip(JExpr input, JCompoundStatement addTo)
- Overrides:
skipin classQType<VarcharDataType>
-
getJavaClass
public java.lang.Class<?> getJavaClass()
- Specified by:
getJavaClassin classQPrimitiveType<VarcharDataType>
-
getNullLiteral
protected JExpr getNullLiteral()
- Specified by:
getNullLiteralin classQPrimitiveType<VarcharDataType>- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
makeConstantExpr
public JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExprin classQType<VarcharDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExprin classQPrimitiveType<VarcharDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExprin classQPrimitiveType<VarcharDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImplin classQPrimitiveType<VarcharDataType>
-
-