public class EntityHolder extends Object
限定符和类型 | 字段和说明 |
---|---|
protected Callback<ConnCallback> |
connCallback |
protected JdbcExpert |
expert |
EntityMaker |
maker |
构造器和说明 |
---|
EntityHolder(JdbcExpert expert,
Callback<ConnCallback> connCallback) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
<T> Entity<T> |
getEntity(Class<T> classOfT)
根据类型获取实体
|
Entity<?> |
getEntityBy(Object obj)
根据一个对象获取实体
对象如果是集合或者数组,则取其第一个元素进行判断
|
boolean |
hasType(Class<?> typeName) |
<T extends Map<String,?>> |
makeEntity(String tableName,
T map) |
void |
remove(Entity<?> en) |
void |
remove(String className) |
void |
set(Entity<?> en) |
public EntityMaker maker
protected JdbcExpert expert
protected Callback<ConnCallback> connCallback
public EntityHolder(JdbcExpert expert, Callback<ConnCallback> connCallback)
public void set(Entity<?> en)
public void remove(Entity<?> en)
public Entity<?> getEntityBy(Object obj)
对象如果是集合或者数组,则取其第一个元素进行判断
obj
- 对象public boolean hasType(Class<?> typeName)
public void clear()
public void remove(String className)
Copyright © 2017. All rights reserved.