コード例 #1
0
ファイル: MetaField.java プロジェクト: RalphSu/yi-ms
 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;
 }
コード例 #2
0
ファイル: ConnectorBundle.java プロジェクト: chinjh/vaadin
  public Collection<Property> getProperties(JClassType type) {
    HashSet<Property> properties = new HashSet<Property>();

    properties.addAll(MethodProperty.findProperties(type));
    properties.addAll(FieldProperty.findProperties(type));

    return properties;
  }
コード例 #3
0
ファイル: MetaField.java プロジェクト: RalphSu/yi-ms
 public String getPropertyValueDbName(FieldProperty fp) {
   CheckConditions.checkNotNull(fp, "fp could not be null!");
   return valueDbName + "." + fp.getDbName();
 }
コード例 #4
0
ファイル: MetaField.java プロジェクト: RalphSu/yi-ms
 public String getFlattenPropertyValueDbName(FieldProperty fp) {
   CheckConditions.checkNotNull(fp, "fp could not be null!");
   return dbName + VALUE_KEY_CONNECTOR + fp.getDbName();
 }