java.lang.Object
org.jooq.meta.DefaultOrderProvider
- All Implemented Interfaces:
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 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DefaultOrderProvider
public DefaultOrderProvider()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Definition>
-