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.Object
Implements 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 QAccessor
accessor
protected java.lang.Class<?>
javaBaseType
protected T
qType
-
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 void
decode(JExpr input, JCompoundStatement addTo)
void
encode(JExpr output, JCompoundStatement addTo)
protected JExpr
getEncodeValue(JExpr nullLiteral)
java.lang.Class<?>
getJavaBaseType()
java.lang.Class<?>
getJavaClass()
JExpr
getLiteral(java.lang.Object obj)
JExpr
getNullLiteral()
protected JExpr
getNullLiteralImpl()
boolean
hasConstraint()
boolean
hasNullLiteral()
protected boolean
hasNullLiteralImpl()
protected JExpr
makeConstantExpr(java.lang.Object obj)
static void
move(QBoundType from, QBoundType to, JCompoundStatement addTo)
JExpr
readIsConstraintViolated()
JExpr
readIsNull(boolean eq)
protected JExpr
readIsNullImpl(boolean eq)
JStatement
writeNull()
JStatement
writeObject(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()
-
-