liquibase.statement.core.SelectFromDatabaseChangeLogLockStatement 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.statement.core;
import liquibase.change.ColumnConfig;
import liquibase.statement.AbstractSqlStatement;
public class SelectFromDatabaseChangeLogLockStatement extends AbstractSqlStatement {
private ColumnConfig[] columnsToSelect;
public SelectFromDatabaseChangeLogLockStatement() {
this.columnsToSelect = new ColumnConfig[0];
}
public SelectFromDatabaseChangeLogLockStatement(String... columnsToSelect) {
this.columnsToSelect = new ColumnConfig[columnsToSelect.length];
for (int i=0; i< columnsToSelect.length; i++) {
this.columnsToSelect[i] = new ColumnConfig().setName(columnsToSelect[i]);
}
}
public SelectFromDatabaseChangeLogLockStatement(ColumnConfig... columnsToSelect) {
this.columnsToSelect = columnsToSelect;
}
public ColumnConfig[] getColumnsToSelect() {
return columnsToSelect;
}
}