HHH-17059 Remove deprecated method Table#getIndexIterator
This commit is contained in:
parent
86155f8705
commit
ab77c82b8a
|
@ -14,7 +14,6 @@ import java.util.List;
|
|||
import org.hibernate.Internal;
|
||||
import org.hibernate.boot.model.naming.Identifier;
|
||||
import org.hibernate.boot.model.relational.Namespace;
|
||||
import org.hibernate.internal.util.collections.JoinedIterator;
|
||||
import org.hibernate.internal.util.collections.JoinedList;
|
||||
|
||||
/**
|
||||
|
@ -116,19 +115,6 @@ public class DenormalizedTable extends Table {
|
|||
return getUniqueKeys().values().iterator();
|
||||
}
|
||||
|
||||
@Override @Deprecated
|
||||
public Iterator<Index> getIndexIterator() {
|
||||
final List<Index> indexes = new ArrayList<>();
|
||||
for ( Index parentIndex : includedTable.getIndexes().values() ) {
|
||||
Index index = new Index();
|
||||
index.setName( getName() + parentIndex.getName() );
|
||||
index.setTable( this );
|
||||
index.addColumns( parentIndex.getColumns() );
|
||||
indexes.add( index );
|
||||
}
|
||||
return new JoinedIterator<>( indexes.iterator(), super.getIndexIterator() );
|
||||
}
|
||||
|
||||
public Table getIncludedTable() {
|
||||
return includedTable;
|
||||
}
|
||||
|
|
|
@ -306,11 +306,6 @@ public class Table implements Serializable, ContributableDatabaseObject {
|
|||
return columns.values();
|
||||
}
|
||||
|
||||
@Deprecated(since = "6.2")
|
||||
public Iterator<Index> getIndexIterator() {
|
||||
return getIndexes().values().iterator();
|
||||
}
|
||||
|
||||
public Map<String, Index> getIndexes() {
|
||||
return unmodifiableMap( indexes );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue