public class TypeWidenerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static com.espertech.esper.util.TypeWidenerFactory.TypeWidenerByteArrayToByteBufferCoercer |
BYTE_ARRAY_TO_BYTE_BUFFER_COERCER |
static TypeWidenerObjectArrayToCollectionCoercer |
OBJECT_ARRAY_TO_COLLECTION_COERCER |
Constructor and Description |
---|
TypeWidenerFactory() |
Modifier and Type | Method and Description |
---|---|
protected static CodegenExpression |
codegenWidenArrayAsListMayNull(CodegenExpression expression,
Class arrayType,
CodegenContext context,
Class generator) |
static TypeWidener |
getArrayToCollectionCoercer(Class componentType) |
static TypeWidener |
getCheckPropertyAssignType(String columnName,
Class columnType,
Class writeablePropertyType,
String writeablePropertyName,
boolean allowObjectArrayToCollectionConversion,
TypeWidenerCustomizer customizer,
String statementName,
String engineURI)
Returns the widener.
|
public static final TypeWidenerObjectArrayToCollectionCoercer OBJECT_ARRAY_TO_COLLECTION_COERCER
public static final com.espertech.esper.util.TypeWidenerFactory.TypeWidenerByteArrayToByteBufferCoercer BYTE_ARRAY_TO_BYTE_BUFFER_COERCER
public static TypeWidener getCheckPropertyAssignType(String columnName, Class columnType, Class writeablePropertyType, String writeablePropertyName, boolean allowObjectArrayToCollectionConversion, TypeWidenerCustomizer customizer, String statementName, String engineURI) throws ExprValidationException
columnName
- name of columncolumnType
- type of columnwriteablePropertyType
- property typewriteablePropertyName
- propery nameallowObjectArrayToCollectionConversion
- whether we widen object-array to collectioncustomizer
- customization if anyengineURI
- engine URIstatementName
- statement nameExprValidationException
- if type validation failspublic static TypeWidener getArrayToCollectionCoercer(Class componentType)
protected static CodegenExpression codegenWidenArrayAsListMayNull(CodegenExpression expression, Class arrayType, CodegenContext context, Class generator)