- java.lang.Object
-
- org.jooq.meta.DefaultOrderProvider
-
- All Implemented Interfaces:
Comparator<Definition>
public class DefaultOrderProvider extends Object implements Comparator<Definition>
A default order provider that allows for comparing arbitrary definitions.jOOQ's code generator, by default, implements ordering of objects in a reasonable, predictable way, according to these rules:
- Alphabetic when irrelevant:
When the order of objects within a parent is irrelevant, they are ordered alphabetically. Such objects include:SchemaDefinitionwithinCatalogDefinitionArrayDefinitionwithinSchemaDefinitionDomainDefinitionwithinSchemaDefinitionEnumDefinitionwithinSchemaDefinitionPackageDefinitionwithinSchemaDefinitionRoutineDefinitionwithinSchemaDefinitionUDTDefinitionwithinSchemaDefinitionTableDefinitionwithinSchemaDefinitionConstraintDefinitionwithinTableDefinitionIndexDefinitionwithinTableDefinitionSequenceDefinitionwithinSchemaDefinition
- In given order when relevant:
When the order of objects within a parent is relevant, and provided by the database vendor, then that order is used. Such objects include:AttributeDefinitionwithinUDTDefinitionColumnDefinitionwithinTableDefinitionIndexColumnDefinitionwithinIndexDefinitionParameterDefinitionwithinRoutineDefinition
- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Definition o1, Definition o2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Definition o1, Definition o2)
- Specified by:
comparein interfaceComparator<Definition>
-
-