[#7477] Add Field.concat(char...)

This commit is contained in:
lukaseder 2018-05-11 17:29:13 +02:00
parent 17f52d5150
commit 3492fb8e72
2 changed files with 15 additions and 0 deletions

View File

@ -3375,6 +3375,16 @@ extends
@Support
Field<String> concat(String... values);
/**
* This method is part of the pre-2.0 API. This API is maintained for
* backwards-compatibility. It may be removed in the future. Consider using
* equivalent methods from {@link DSLContext}
*
* @see DSL#concat(String...)
*/
@Support
Field<String> concat(char... values);
/**
* This method is part of the pre-2.0 API. This API is maintained for
* backwards-compatibility. It may be removed in the future. Consider using

View File

@ -1929,6 +1929,11 @@ abstract class AbstractField<T> extends AbstractNamed implements Field<T> {
return DSL.concat(Tools.combine(this, Tools.fields(values).toArray(EMPTY_FIELD)));
}
@Override
public final Field<String> concat(char... values) {
return concat(new String(values));
}
@Override
@Deprecated
public final Field<String> substring(int startingPosition) {