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())) {