public static FieldProperty fromQueryName(String q) { if (q == null || q.length() == 0) { return null; } for (FieldProperty prop : FieldProperty.values()) { if (prop.getName().equals(q)) { return prop; } } return null; }
public Collection<Property> getProperties(JClassType type) { HashSet<Property> properties = new HashSet<Property>(); properties.addAll(MethodProperty.findProperties(type)); properties.addAll(FieldProperty.findProperties(type)); return properties; }
public String getPropertyValueDbName(FieldProperty fp) { CheckConditions.checkNotNull(fp, "fp could not be null!"); return valueDbName + "." + fp.getDbName(); }
public String getFlattenPropertyValueDbName(FieldProperty fp) { CheckConditions.checkNotNull(fp, "fp could not be null!"); return dbName + VALUE_KEY_CONNECTOR + fp.getDbName(); }