public abstract class AbstractEntityContext extends Object implements EntityContext
Abstract AbstractEntityContext class.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,EntityType> |
classEntityTypes
class-name->entity-type
|
protected Map<String,EntityType> |
entityTypes
entity-name->entity-type
|
protected static org.slf4j.Logger |
logger
Constant
logger |
| Constructor and Description |
|---|
AbstractEntityContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityName(Object obj)
根据对象返回实体名
|
String[] |
getEntityNames(Class<?> clazz)
一个具体类所对应的实体名数组.
|
EntityType |
getEntityType(Class<?> entityClass)
getEntityType.
|
EntityType |
getEntityType(String entityName)
根据实体名查找实体类型
|
Type |
getType(String name)
根据实体名查找实体类型
|
protected Map<String,EntityType> entityTypes
protected Map<String,EntityType> classEntityTypes
protected static final org.slf4j.Logger logger
loggerpublic String[] getEntityNames(Class<?> clazz)
EntityContextgetEntityNames in interface EntityContextclazz - a Class object.String objects.public Type getType(String name)
EntityContextgetType in interface EntityContextname - a String object.Type object.public String getEntityName(Object obj)
EntityContextgetEntityName in interface EntityContextobj - a Object object.String object.public EntityType getEntityType(Class<?> entityClass)
getEntityType.
getEntityType in interface EntityContextentityClass - a Class object.EntityType object.public EntityType getEntityType(String entityName)
EntityContextgetEntityType in interface EntityContextentityName - a String object.Copyright © 2005–2018 The Beangle Software. All rights reserved.