public abstract class AbstractEntityField extends Object implements EntityField
| Constructor and Description |
|---|
AbstractEntityField(Entity<?> entity) |
| Modifier and Type | Method and Description |
|---|---|
Entity<?> |
getEntity() |
String |
getName() |
Type |
getType() |
Class<?> |
getTypeClass() |
Mirror<?> |
getTypeMirror() |
Object |
getValue(Object obj)
从 Java 对象中获取一个值
|
void |
setEjecting(Ejecting ejecting) |
void |
setInjecting(Injecting injecting) |
void |
setName(String name) |
void |
setType(Type type) |
void |
setValue(Object obj,
Object value)
为当前实体字段注入值,优先通过 setter 注入
|
String |
toString() |
public AbstractEntityField(Entity<?> entity)
public Entity<?> getEntity()
getEntity in interface EntityFieldpublic String getName()
getName in interface EntityFieldpublic Type getType()
getType in interface EntityFieldpublic Class<?> getTypeClass()
getTypeClass in interface EntityFieldpublic Mirror<?> getTypeMirror()
getTypeMirror in interface EntityFieldpublic void setValue(Object obj, Object value)
EntityFieldsetValue in interface EntityFieldobj - 被设值对象value - 值public Object getValue(Object obj)
EntityFieldgetValue in interface EntityFieldobj - Java 对象public void setName(String name)
public void setInjecting(Injecting injecting)
public void setEjecting(Ejecting ejecting)
public void setType(Type type)
Copyright © 2017. All rights reserved.