public class TenantData extends Object
Constructor and Description |
---|
TenantData() |
Modifier and Type | Method and Description |
---|---|
<K,T> T |
getFieldValue(K obj,
String fieldName)
Retrieves the value of
obj 's field isolated per tenant |
<K,T> T |
getFieldValue(K obj,
String fieldName,
Supplier<T> supplier)
Retrieves the value of
obj 's field isolated per tenant |
<K,T> void |
setFieldValue(K key,
String fieldName,
T value)
Sets the value for tenant isolated field
|
public <K,T> T getFieldValue(K obj, String fieldName, Supplier<T> supplier)
obj
's field isolated per tenantobj
- Object the field associates withfieldName
- Field namesupplier
- Responsible for creating the initial field valuepublic <K,T> T getFieldValue(K obj, String fieldName)
obj
's field isolated per tenantobj
- Object the field associates withfieldName
- Field namepublic <K,T> void setFieldValue(K key, String fieldName, T value)
key
- Object associated with field.fieldName
- name of field.value
- new field value"Copyright 2018, Alibaba, Inc."