net.java.ao.atlassian.AtlassianUniqueNameConverter Maven / Gradle / Ivy
package net.java.ao.atlassian;
import net.java.ao.schema.DefaultUniqueNameConverter;
import net.java.ao.schema.UniqueNameConverter;
import java.util.Objects;
import static net.java.ao.Common.shorten;
public final class AtlassianUniqueNameConverter implements UniqueNameConverter {
private final UniqueNameConverter delegate;
public AtlassianUniqueNameConverter() {
this(new DefaultUniqueNameConverter());
}
public AtlassianUniqueNameConverter(UniqueNameConverter delegate) {
this.delegate = Objects.requireNonNull(delegate, "delegate can't be null");
}
@Override
public String getName(String tableName, String columnName) {
return shorten(delegate.getName(tableName, columnName), ConverterUtils.MAX_LENGTH);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy