MCPcopy Create free account
hub / github.com/androrm/androrm / getField

Method getField

src/src/com/orm/androrm/ModelCache.java:92–98  ·  view source on GitHub ↗
(Class<T> clazz, String fieldName)

Source from the content-addressed store, hash-verified

90 }
91
92 public static <T extends Model> Field getField(Class<T> clazz, String fieldName) {
93 if(knowsFields(clazz)) {
94 return FIELD_SHORTCUTS.get(DatabaseBuilder.getTableName(clazz) + fieldName);
95 }
96
97 return null;
98 }
99
100 public static void reset(String model) {
101 KNOWN_MODELS.remove(model);

Callers 2

testFieldShortcurMethod · 0.95
getFieldMethod · 0.95

Calls 3

knowsFieldsMethod · 0.95
getTableNameMethod · 0.95
getMethod · 0.65

Tested by 1

testFieldShortcurMethod · 0.76