public class TypeWidenerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static com.espertech.esper.common.internal.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,
CodegenMethodScope codegenMethodScope,
Class generator,
CodegenClassScope codegenClassScope) |
static CodegenExpression |
codegenWidener(TypeWidenerSPI widener,
CodegenMethod method,
Class originator,
CodegenClassScope classScope) |
static TypeWidenerSPI |
getArrayToCollectionCoercer(Class componentType) |
static TypeWidenerSPI |
getCheckPropertyAssignType(String columnName,
Class columnType,
Class writeablePropertyType,
String writeablePropertyName,
boolean allowObjectArrayToCollectionConversion,
TypeWidenerCustomizer customizer,
String statementName)
Returns the widener.
|
public static final TypeWidenerObjectArrayToCollectionCoercer OBJECT_ARRAY_TO_COLLECTION_COERCER
public static final com.espertech.esper.common.internal.util.TypeWidenerFactory.TypeWidenerByteArrayToByteBufferCoercer BYTE_ARRAY_TO_BYTE_BUFFER_COERCER
public static TypeWidenerSPI getCheckPropertyAssignType(String columnName, Class columnType, Class writeablePropertyType, String writeablePropertyName, boolean allowObjectArrayToCollectionConversion, TypeWidenerCustomizer customizer, String statementName) throws TypeWidenerException
columnName
- name of columncolumnType
- type of columnwriteablePropertyType
- property typewriteablePropertyName
- propery nameallowObjectArrayToCollectionConversion
- whether we widen object-array to collectioncustomizer
- customization if anystatementName
- statement nameTypeWidenerException
- if type validation failspublic static TypeWidenerSPI getArrayToCollectionCoercer(Class componentType)
public static CodegenExpression codegenWidener(TypeWidenerSPI widener, CodegenMethod method, Class originator, CodegenClassScope classScope)
protected static CodegenExpression codegenWidenArrayAsListMayNull(CodegenExpression expression, Class arrayType, CodegenMethodScope codegenMethodScope, Class generator, CodegenClassScope codegenClassScope)
Copyright © 2005–2019. All rights reserved.