| Package | Description |
|---|---|
| org.beangle.commons.entity.metadata | |
| org.beangle.commons.entity.metadata.impl | |
| org.beangle.commons.transfer.importer |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
ModelMeta.getEntityType(Class<?> clazz)
getEntityType.
|
EntityType |
EntityContext.getEntityType(Class<?> entityClass)
根据类型,查找实体类型
找到实体名或者实体类名和指定类类名相同的entityType |
EntityType |
ModelMeta.getEntityType(String entityName)
getEntityType.
|
EntityType |
EntityContext.getEntityType(String entityName)
根据实体名查找实体类型
|
static EntityType |
Model.getType(Class<?> clazz)
getEntityType.
|
static EntityType |
Model.getType(String entityName)
getEntityType.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Populator.populate(Object target,
EntityType type,
Map<String,Object> params)
populate.
|
boolean |
Populator.populateValue(Object target,
EntityType type,
String attr,
Object value) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,EntityType> |
AbstractEntityContext.classEntityTypes
class-name->entity-type
|
protected Map<String,EntityType> |
AbstractEntityContext.entityTypes
entity-name->entity-type
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
AbstractEntityContext.getEntityType(Class<?> entityClass)
getEntityType.
|
EntityType |
DefaultModelMeta.getEntityType(Class<?> clazz)
getEntityType.
|
EntityType |
AbstractEntityContext.getEntityType(String entityName) |
EntityType |
DefaultModelMeta.getEntityType(String entityName)
getEntityType.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
ConvertPopulatorBean.populate(Object entity,
EntityType type,
Map<String,Object> params)
将params中的属性([attr(string)->value(object)],放入到实体类中。
|
boolean |
ConvertPopulatorBean.populateValue(Object target,
EntityType type,
String attr,
Object value)
安静的拷贝属性,如果属性非法或其他错误则记录日志
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,EntityType> |
MultiEntityImporter.entityTypes |
| Modifier and Type | Method and Description |
|---|---|
protected EntityType |
MultiEntityImporter.getEntityType(String attr)
getEntityType.
|
protected EntityType |
DefaultEntityImporter.getEntityType(String attr) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,EntityType> |
MultiEntityImporter.getEntityTypes()
Getter for the field
entityTypes. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MultiEntityImporter.populateValue(Object entity,
EntityType type,
String attr,
Object value)
Populate single attribute
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiEntityImporter.setEntityTypes(Map<String,EntityType> entityTypes)
Setter for the field
entityTypes. |
Copyright © 2005–2018 The Beangle Software. All rights reserved.