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
collectParameters
(Value identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector, ConfigurationService configService) static Properties
collectParameters
(Value identifierValue, Dialect dialect, RootClass rootClass, Map<String, Object> configuration, ConfigurationService configService) 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(Value identifierValue, Dialect dialect, RootClass rootClass, Map<String, Object> configuration, ConfigurationService configService) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties)
. -
collectParameters
public static void collectParameters(Value identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector, ConfigurationService configService) -
fallbackAllocationSize
public static int fallbackAllocationSize(Annotation generatorAnnotation, MetadataBuildingContext buildingContext) -
identityTablesString
-
defaultIncrement
-
interpretTableGenerator
@Internal public static void interpretTableGenerator(TableGenerator tableGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder) -
interpretSequenceGenerator
@Internal public static void interpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder)
-