liquibase-core/src/main/java/liquibase/change/ColumnConfig.java
public ColumnConfig setValueNumeric(String valueNumeric) {
        if ((valueNumeric == null) || "null".equalsIgnoreCase(valueNumeric)) {
            this.valueNumeric = null;
        } else {
            String saved = valueNumeric;
            if (valueNumeric.startsWith("(")) {
                valueNumeric = valueNumeric.replaceFirst("^\\(", "");
                valueNumeric = valueNumeric.replaceFirst("\\)$", "");
            }

            try {
                this.valueNumeric = ValueNumeric.of(Locale.US, valueNumeric);
            } catch (ParseException e) {
                this.valueComputed = new DatabaseFunction(saved);
            }
        }

        return this;
    }
public ColumnConfig setValueNumeric(String valueNumeric) {
        if ((valueNumeric == null) || "null".equalsIgnoreCase(valueNumeric)) {
            this.valueNumeric = null;
        } else {
            String saved = valueNumeric;
            if (valueNumeric.startsWith("(")) {
                valueNumeric = valueNumeric.replaceFirst("^\\(", "");
                valueNumeric = valueNumeric.replaceFirst("\\)$", "");
            }

            try {
                this.valueNumeric = ValueNumeric.of(Locale.US, valueNumeric);
            } catch (ParseException e) {
                this.valueComputed = new DatabaseFunction(saved);
            }
        }

        return this;
    }
public ColumnConfig setValueNumeric ( String valueNumeric ) { if ( ( valueNumeric == null ) || "null" . equalsIgnoreCase ( valueNumeric ) ) { this . valueNumeric = null ; } else { String saved = valueNumeric ; if ( valueNumeric . startsWith ( "(" ) ) { valueNumeric = valueNumeric . replaceFirst ( "^\\(" , "" ) ; valueNumeric = valueNumeric . replaceFirst ( "\\)$" , "" ) ; } try { this . valueNumeric = ValueNumeric . of ( Locale . US , valueNumeric ) ; } catch ( ParseException e ) { this . valueComputed = new DatabaseFunction ( saved ) ; } } return this ; }
Set the number this column should be set to. Supports integers and decimals, and strips off any wrapping
parentheses. If the passed value cannot be parsed as a number in US locale, it is assumed to be a function
that returns a number. If the value "null" is passed, it will set a null value.
Set the number this column should be set to . Supports integers and decimals and strips off any wrapping parentheses . If the passed value cannot be parsed as a number in US locale it is assumed to be a function that returns a number . If the value null is passed it will set a null value .