public abstract class AbstractLinkField extends AbstractEntityField implements LinkField
限定符和类型 | 字段和说明 |
---|---|
protected EntityHolder |
holder |
protected MappingField |
hostField |
protected MappingField |
linkedField |
protected String |
mapKey |
protected Entity<?> |
target |
protected Class<?> |
targetType |
构造器和说明 |
---|
AbstractLinkField(Entity<?> entity,
EntityHolder holder,
LinkInfo info) |
限定符和类型 | 方法和说明 |
---|---|
PojoCallback |
getCallback() |
MappingField |
getHostField() |
Entity<?> |
getLinkedEntity() |
MappingField |
getLinkedField() |
protected Class<?> |
guessTargetClass(LinkInfo info,
Class<?> klass) |
void |
setValue(Object obj,
Object value)
为当前实体字段注入值,优先通过 setter 注入
|
getEntity, getName, getType, getTypeClass, getTypeMirror, getValue, setEjecting, setInjecting, setName, setType, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCondition, getLinkType, saveLinkedField, toString, updateLinkedField
getEntity, getName, getType, getTypeClass, getTypeMirror, getValue
protected EntityHolder holder
protected Class<?> targetType
protected Entity<?> target
protected String mapKey
protected MappingField hostField
protected MappingField linkedField
public AbstractLinkField(Entity<?> entity, EntityHolder holder, LinkInfo info)
public void setValue(Object obj, Object value)
EntityField
setValue
在接口中 EntityField
setValue
在类中 AbstractEntityField
obj
- 被设值对象value
- 值public Entity<?> getLinkedEntity()
getLinkedEntity
在接口中 LinkField
public PojoCallback getCallback()
getCallback
在接口中 LinkField
public MappingField getHostField()
getHostField
在接口中 LinkField
public MappingField getLinkedField()
getLinkedField
在接口中 LinkField
Copyright © 2017. All rights reserved.