Package ch.tocco.nice2.dbrefactoring.spi
Class PostgreConstraintNames
java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
ch.tocco.nice2.dbrefactoring.spi.PostgreConstraintNames
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
JdbcHelper.SqlFunction<A,
B> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PostgreConstraintNames
createWithExistingConstraints
(DataSource dataSource) only use this static method factory if getConstraintName is called to generate new unique names.getConstraintName
(String tableName, String columnNames, String suffix) Methods inherited from class ch.tocco.nice2.dbrefactoring.spi.liquibase.JdbcHelper
ddlStatement, tableExists, uniqueIndexExists, withConnection, withResultSet, withStatement
-
Constructor Details
-
PostgreConstraintNames
public PostgreConstraintNames()
-
-
Method Details
-
createWithExistingConstraints
only use this static method factory if getConstraintName is called to generate new unique names. If you want the name of an existing constraint or call the method twice for the same constraint you get the wrong name! -
getConstraintName
-