From 10a0dd840647d34c6c922a710145397f62da5747 Mon Sep 17 00:00:00 2001 From: kamhung <22250530@qq.com> Date: Mon, 7 Dec 2015 15:49:51 +0800 Subject: [PATCH] --- src/com/wentch/redkale/source/EntityInfo.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/wentch/redkale/source/EntityInfo.java b/src/com/wentch/redkale/source/EntityInfo.java index 8fffdf93a..5b6a8a82d 100644 --- a/src/com/wentch/redkale/source/EntityInfo.java +++ b/src/com/wentch/redkale/source/EntityInfo.java @@ -108,6 +108,10 @@ public final class EntityInfo { } } + public static EntityInfo get(Class clazz) { + return entityInfos.get(clazz); + } + private EntityInfo(Class type, int nodeid, final boolean cacheForbidden) { this.type = type; //--------------------------------------------- @@ -336,7 +340,7 @@ public final class EntityInfo { return getSQLColumn(tabalis, this.primary.field()); } - public Map> getAttributes() { + protected Map> getAttributes() { return attributeMap; } @@ -344,7 +348,7 @@ public final class EntityInfo { return l.intValue() >= this.logLevel; } - public T getValue(final SelectColumn sels, final ResultSet set) throws SQLException { + protected T getValue(final SelectColumn sels, final ResultSet set) throws SQLException { T obj = creator.create(); for (Attribute attr : queryAttributes) { if (sels == null || sels.test(attr.field())) {