Package deltix.qsrv.hf.codec.cg
Class QBoundType<T extends QPrimitiveType>
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QBoundType<T>
-
- Direct Known Subclasses:
QBAlphanumericType,QBArrayType,QBBinaryType,QBBooleanType,QBClassType,QBDateTimeType,QBEnumType,QBNumericType,QBStringType
public class QBoundType<T extends QPrimitiveType> extends java.lang.ObjectImplements a part of QPrimitiveValue functionality depending on Java/.NET type to which a value is bound to.This includes: encoding/decoding, readIsNull/writeNull, writeObject
-
-
Field Summary
Fields Modifier and Type Field Description protected QAccessoraccessorprotected java.lang.Class<?>javaBaseTypeprotected TqType
-
Constructor Summary
Constructors Constructor Description QBoundType(T qType, java.lang.Class<?> javaType, QAccessor accessor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(JExpr input, JCompoundStatement addTo)voidencode(JExpr output, JCompoundStatement addTo)protected JExprgetEncodeValue(JExpr nullLiteral)java.lang.Class<?>getJavaBaseType()java.lang.Class<?>getJavaClass()JExprgetLiteral(java.lang.Object obj)JExprgetNullLiteral()protected JExprgetNullLiteralImpl()booleanhasConstraint()booleanhasNullLiteral()protected booleanhasNullLiteralImpl()protected JExprmakeConstantExpr(java.lang.Object obj)static voidmove(QBoundType from, QBoundType to, JCompoundStatement addTo)JExprreadIsConstraintViolated()JExprreadIsNull(boolean eq)protected JExprreadIsNullImpl(boolean eq)JStatementwriteNull()JStatementwriteObject(java.lang.Object obj)
-
-
-
Field Detail
-
qType
protected final T extends QPrimitiveType qType
-
accessor
protected final QAccessor accessor
-
javaBaseType
protected final java.lang.Class<?> javaBaseType
-
-
Method Detail
-
decode
public void decode(JExpr input, JCompoundStatement addTo)
-
encode
public void encode(JExpr output, JCompoundStatement addTo)
-
getJavaClass
public java.lang.Class<?> getJavaClass()
-
getJavaBaseType
public java.lang.Class<?> getJavaBaseType()
-
hasNullLiteral
public final boolean hasNullLiteral()
-
hasNullLiteralImpl
protected boolean hasNullLiteralImpl()
-
getNullLiteral
public JExpr getNullLiteral()
-
getNullLiteralImpl
protected JExpr getNullLiteralImpl()
-
getLiteral
public final JExpr getLiteral(java.lang.Object obj)
-
readIsNull
public final JExpr readIsNull(boolean eq)
-
readIsNullImpl
protected JExpr readIsNullImpl(boolean eq)
-
writeNull
public JStatement writeNull()
-
move
public static void move(QBoundType from, QBoundType to, JCompoundStatement addTo)
-
writeObject
public JStatement writeObject(java.lang.Object obj)
-
makeConstantExpr
protected JExpr makeConstantExpr(java.lang.Object obj)
-
hasConstraint
public boolean hasConstraint()
-
readIsConstraintViolated
public JExpr readIsConstraintViolated()
-
-