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 EntityField
public String getName()
getName
in interface EntityField
public Type getType()
getType
in interface EntityField
public Class<?> getTypeClass()
getTypeClass
in interface EntityField
public Mirror<?> getTypeMirror()
getTypeMirror
in interface EntityField
public void setValue(Object obj, Object value)
EntityField
setValue
in interface EntityField
obj
- 被设值对象value
- 值public Object getValue(Object obj)
EntityField
getValue
in interface EntityField
obj
- 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.