Interface ColumnOrderingStrategy
-
- All Known Implementing Classes:
ColumnOrderingStrategyLegacy,ColumnOrderingStrategyStandard
public interface ColumnOrderingStrategyA pluggable contract that allows ordering of columns withinTable,ConstraintandUserDefinedType.Whenever reasonable, the use of a custom ColumnOrderingStrategy is highly recommended in preference to tedious and repetitive explicit table and column name mappings. It's anticipated that most projects using Hibernate will feature a custom implementation of
ImplicitNamingStrategy.An ColumnOrderingStrategy may be selected using the configuration property "hibernate.column_ordering_strategy".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Column>orderConstraintColumns(Constraint constraint, Metadata metadata)Orders the columns of the constraint.List<Column>orderTableColumns(Table table, Metadata metadata)Orders the columns of the table.voidorderTemporaryTableColumns(List<TemporaryTableColumn> temporaryTableColumns, Metadata metadata)Orders the columns of the temporary table.List<Column>orderUserDefinedTypeColumns(UserDefinedType userDefinedType, Metadata metadata)Orders the columns of the user defined type.
-
-
-
Method Detail
-
orderTableColumns
List<Column> orderTableColumns(Table table, Metadata metadata)
Orders the columns of the table. May return null if columns were not ordered.
-
orderConstraintColumns
List<Column> orderConstraintColumns(Constraint constraint, Metadata metadata)
Orders the columns of the constraint. May return null if columns were not ordered.
-
orderUserDefinedTypeColumns
List<Column> orderUserDefinedTypeColumns(UserDefinedType userDefinedType, Metadata metadata)
Orders the columns of the user defined type. May return null if columns were not ordered.
-
orderTemporaryTableColumns
void orderTemporaryTableColumns(List<TemporaryTableColumn> temporaryTableColumns, Metadata metadata)
Orders the columns of the temporary table.
-
-