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