All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.datatype.DatabaseDataType Maven / Gradle / Ivy

There is a newer version: 4.29.1
Show newest version
package liquibase.datatype;

import liquibase.util.StringUtil;

import java.util.Locale;

/**
 * This class represents a native data type used by a specific RDBMS. This is in contrast of
 * {@link LiquibaseDataType}, which represents data types used in changeSets (which will later be translated into
 * the RDBMS-specific data type if required).
 */
public class DatabaseDataType {

    private String type;

    public DatabaseDataType(String type) {
        this.type = type;
    }

    public DatabaseDataType(String name, Object... parameters) {
        if (parameters == null) {
            parameters = new Object[0];
        }
        this.type = name;

        String[] stringParams = new String[parameters.length];
        if (parameters.length > 0) {
            for (int i = 0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy