Class GeneratorParameters
java.lang.Object
org.hibernate.boot.model.internal.GeneratorParameters
Responsible for setting up the parameters which are passed to
Configurable.configure(GeneratorCreationContext, Properties)
when a Configurable
generator is instantiated.- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
collectBaselineProperties
(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector) static Properties
collectParameters
(SimpleValue identifierValue, Dialect dialect, RootClass rootClass) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties)
.static void
collectParameters
(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector) static Properties
collectParameters
(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, Map<String, Object> configuration) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties)
.static int
defaultIncrement
(ConfigurationService configService) static int
fallbackAllocationSize
(Annotation generatorAnnotation, MetadataBuildingContext buildingContext) static String
identityTablesString
(Dialect dialect, RootClass rootClass) static void
interpretSequenceGenerator
(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder) static void
interpretTableGenerator
(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
-
Constructor Details
-
GeneratorParameters
public GeneratorParameters()
-
-
Method Details
-
collectParameters
public static Properties collectParameters(SimpleValue identifierValue, Dialect dialect, RootClass rootClass) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties)
. -
collectParameters
public static Properties collectParameters(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, Map<String, Object> configuration) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties)
. -
collectParameters
public static void collectParameters(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector) -
fallbackAllocationSize
public static int fallbackAllocationSize(Annotation generatorAnnotation, MetadataBuildingContext buildingContext) -
collectBaselineProperties
public static void collectBaselineProperties(SimpleValue identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector) -
identityTablesString
-
defaultIncrement
-
interpretTableGenerator
@Internal public static void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder) -
interpretSequenceGenerator
@Internal public static void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
-