file.add(Import.of(Arrays.class).setStaticMember("asList").static_()); intf.public_() .add(SimpleParameterizedType.create(Manager.class, getSupport().entityType())) .add( Field.of( "IDENTIFIER", )) .add(Field.of("FIELDS", list(SimpleParameterizedType.create( com.speedment.runtime.field.Field.class, getSupport().entityType()) .collect(joining("," + nl())) ) + nl() + "))"))) .add(Method.of("getEntityClass", classOf(getSupport().entityType())) .default_().add(OVERRIDE) .add("return " + getSupport().entityName() + ".class;")
.forEveryTable((intrf, col) -> intrf.public_().add(identifierEnum)) final Type retType = getterReturnType(typeMappers, col); intrf.add(Method.of(GETTER_METHOD_PREFIX + getSupport().typeName(col), retType) .set(Javadoc.of( "Returns the " + getSupport().variableName(col) intrf.add(Method.of(SETTER_METHOD_PREFIX + getSupport().typeName(col), getSupport().entityType()) .add(Field.of(getSupport().variableName(col), typeMappers.get(col).getJavaType(col))) .set(Javadoc.of( intrf.add(Method.of(FINDER_METHOD_PREFIX + getSupport().typeName(col), col.isNullable() ? optional(fuSupport.entityType()) intrf.add(Field.of(getSupport().namer().javaStaticFieldName(col.getJavaName()), ref.getType()) .final_() .set(Value.ofInvocation(
file.add(Import.of(Arrays.class).setStaticMember("asList").static_()); intf.public_() .add(SimpleParameterizedType.create(Manager.class, getSupport().entityType())) .add( Field.of( "IDENTIFIER", )) .add(Field.of("FIELDS", list(SimpleParameterizedType.create( com.speedment.runtime.field.Field.class, getSupport().entityType()) .collect(joining("," + nl())) ) + nl() + "))"))) .add(Method.of("getEntityClass", classOf(getSupport().entityType())) .default_().add(OVERRIDE) .add("return " + getSupport().entityName() + ".class;")
.forEveryTable((intrf, col) -> intrf.public_().add(identifierEnum)) final Type retType = getterReturnType(typeMappers, col); intrf.add(Method.of(GETTER_METHOD_PREFIX + getSupport().typeName(col), retType) .set(Javadoc.of( "Returns the " + getSupport().variableName(col) intrf.add(Method.of(SETTER_METHOD_PREFIX + getSupport().typeName(col), getSupport().entityType()) .add(Field.of(getSupport().variableName(col), typeMappers.get(col).getJavaType(col))) .set(Javadoc.of( intrf.add(Method.of(FINDER_METHOD_PREFIX + getSupport().typeName(col), col.isNullable() ? optional(fuSupport.entityType()) intrf.add(Field.of(getSupport().namer().javaStaticFieldName(col.getJavaName()), ref.getType()) .final_() .set(Value.ofInvocation(