* @throws SQLException if the column is referenced
*/
public void checkColumnIsNotReferenced(Column col) {
for (int i = 0; constraints != null && i < constraints.size(); i++) {
Constraint constraint = constraints.get(i);
if (constraint.containsColumn(col)) {
throw DbException.get(ErrorCode.COLUMN_MAY_BE_REFERENCED_1, constraint.getSQL());
}
}
ArrayList<Index> indexes = getIndexes();
for (int i = 0; indexes != null && i < indexes.size(); i++) {