public class Mapping extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getDatabaseFieldName(Field field,
String annotationName) |
Field |
getField() |
Class |
getFieldClass() |
FieldMapper |
getFieldMapper() |
Method |
getGetter(Field field) |
static List<Mapping> |
getMappingsForClass(Class clazz) |
String |
getName() |
Method |
getSetter() |
Method |
getSetter(Field field) |
Class<? extends ValueTransformer<?,?>> |
getValueTransformer() |
boolean |
isOptionalField() |
void |
map(Object target,
Object value) |
String |
toString() |
public Class getFieldClass()
public boolean isOptionalField()
public Class<? extends ValueTransformer<?,?>> getValueTransformer()
public Method getSetter()
public String getName()
public static final String getDatabaseFieldName(Field field, String annotationName)
public Field getField()
public FieldMapper getFieldMapper() throws NotsupportedTypeException, InstantiationException, IllegalAccessException, InvocationTargetException, SecurityException, IllegalArgumentException, NoSuchMethodException
public void map(Object target, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException, SecurityException, IllegalArgumentException, NoSuchMethodException
Copyright © 2012–2022 Zalando SE. All rights reserved.