public class JsonProperty extends Property
Modifier and Type | Field and Description |
---|---|
static String |
KEY_JSON_PREFIX |
Modifier and Type | Method and Description |
---|---|
Object |
add(Object bean,
Object item)
If this is a multi-valued field (one-to-many, many-to-many), add the specified item to the
collection.
|
Object |
addAll(Object bean,
Collection<?> items)
If this is a multi-valued field (one-to-many, many-to-many), add all the specified items to the
collection.
|
Object |
get(Object bean)
Get the value of this property from the given bean instance.
|
String |
getName() |
Class<?> |
getTarget() |
PropertyType |
getType() |
boolean |
isCollection() |
boolean |
isPrimary() |
boolean |
isReference() |
boolean |
isVirtual() |
static JsonProperty |
of(Class<?> beanClass,
String field) |
static JsonProperty |
of(String jsonModel,
String field) |
Object |
set(Object bean,
Object value)
Set the value for this property to the given bean instance.
|
clear, getEntity, getEnumType, getGenericType, getHelp, getJavaType, getMappedBy, getMaxSize, getMinSize, getNameSearch, getPrecision, getScale, getSelection, getSequenceName, getTargetName, getTargetSearch, getTitle, isCopyable, isDefaultNow, isEncrypted, isEnum, isEqualsInclude, isHashKey, isHidden, isImage, isJson, isMassUpdate, isNameColumn, isNullable, isOrphan, isPassword, isReadonly, isRequired, isSequence, isTransient, isTranslatable, isUnique, isVersion, setAssociation, toMap, toString, valueChanged
public static final String KEY_JSON_PREFIX
@Nullable public static JsonProperty of(Class<?> beanClass, String field)
@Nullable public static JsonProperty of(String jsonModel, String field)
public PropertyType getType()
public boolean isReference()
isReference
in class Property
public boolean isCollection()
isCollection
in class Property
public Object get(Object bean)
Property
public Object set(Object bean, Object value)
Property
If the property is a collection, ensure the proper parent-child relationship marked with mappedBy attribute.
public Object add(Object bean, Object item)
Property
public Object addAll(Object bean, Collection<?> items)
Property