liquibase.statement.ForeignKeyConstraint Maven / Gradle / Ivy
package liquibase.statement;
public class ForeignKeyConstraint implements ColumnConstraint {
private String foreignKeyName;
private String column;
private String references;
private boolean deleteCascade = false;
private boolean initiallyDeferred = false;
private boolean deferrable = false;
public ForeignKeyConstraint(String foreignKeyName,String references) {
this.foreignKeyName = foreignKeyName;
this.references = references;
}
public String getForeignKeyName() {
return foreignKeyName;
}
public String getColumn() {
return column;
}
public ForeignKeyConstraint setColumn(String column) {
this.column = column;
return this;
}
public String getReferences() {
return references;
}
public boolean isDeleteCascade() {
return deleteCascade;
}
public ForeignKeyConstraint setDeleteCascade(boolean deleteCascade) {
this.deleteCascade = deleteCascade;
return this;
}
public boolean isInitiallyDeferred() {
return initiallyDeferred;
}
public ForeignKeyConstraint setInitiallyDeferred(boolean initiallyDeferred) {
this.initiallyDeferred = initiallyDeferred;
return this;
}
public boolean isDeferrable() {
return deferrable;
}
public ForeignKeyConstraint setDeferrable(boolean deferrable) {
this.deferrable = deferrable;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy