liquibase.datatype.DatabaseDataType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
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