public class POJOUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<ReflectUtils.TypeDescriptorWithSchema<?>,SchemaUserTypeCreator> |
CACHED_CREATORS |
Constructor and Description |
---|
POJOUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> SchemaUserTypeCreator |
createConstructorCreator(java.lang.Class<? super T> clazz,
java.lang.reflect.Constructor<T> constructor,
Schema schema,
java.util.List<FieldValueTypeInformation> types,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static <T> SchemaUserTypeCreator |
createStaticCreator(java.lang.Class<T> clazz,
java.lang.reflect.Method creator,
Schema schema,
java.util.List<FieldValueTypeInformation> types,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static <T> SchemaUserTypeCreator |
getConstructorCreator(TypeDescriptor<T> typeDescriptor,
java.lang.reflect.Constructor<T> constructor,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static java.util.List<FieldValueTypeInformation> |
getFieldTypes(TypeDescriptor<?> typeDescriptor,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier) |
static <T> java.util.List<FieldValueGetter<T,java.lang.Object>> |
getGetters(TypeDescriptor<T> typeDescriptor,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static <T> SchemaUserTypeCreator |
getSetFieldCreator(TypeDescriptor<T> typeDescriptor,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static <T> java.util.List<FieldValueSetter<T,java.lang.Object>> |
getSetters(TypeDescriptor<T> typeDescriptor,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static SchemaUserTypeCreator |
getStaticCreator(TypeDescriptor<?> typeDescriptor,
java.lang.reflect.Method creator,
Schema schema,
FieldValueTypeSupplier fieldValueTypeSupplier,
ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory) |
static Schema |
schemaFromPojoClass(TypeDescriptor<?> typeDescriptor,
FieldValueTypeSupplier fieldValueTypeSupplier) |
public static final java.util.Map<ReflectUtils.TypeDescriptorWithSchema<?>,SchemaUserTypeCreator> CACHED_CREATORS
public static Schema schemaFromPojoClass(TypeDescriptor<?> typeDescriptor, FieldValueTypeSupplier fieldValueTypeSupplier)
public static java.util.List<FieldValueTypeInformation> getFieldTypes(TypeDescriptor<?> typeDescriptor, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier)
public static <T> java.util.List<FieldValueGetter<T,java.lang.Object>> getGetters(TypeDescriptor<T> typeDescriptor, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static <T> SchemaUserTypeCreator getSetFieldCreator(TypeDescriptor<T> typeDescriptor, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static <T> SchemaUserTypeCreator getConstructorCreator(TypeDescriptor<T> typeDescriptor, java.lang.reflect.Constructor<T> constructor, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static <T> SchemaUserTypeCreator createConstructorCreator(java.lang.Class<? super T> clazz, java.lang.reflect.Constructor<T> constructor, Schema schema, java.util.List<FieldValueTypeInformation> types, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static SchemaUserTypeCreator getStaticCreator(TypeDescriptor<?> typeDescriptor, java.lang.reflect.Method creator, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static <T> SchemaUserTypeCreator createStaticCreator(java.lang.Class<T> clazz, java.lang.reflect.Method creator, Schema schema, java.util.List<FieldValueTypeInformation> types, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)
public static <T> java.util.List<FieldValueSetter<T,java.lang.Object>> getSetters(TypeDescriptor<T> typeDescriptor, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier, ByteBuddyUtils.TypeConversionsFactory typeConversionsFactory)