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 voidcollectParameters(Value identifierValue, Dialect dialect, RootClass rootClass, BiConsumer<String, String> parameterCollector, ConfigurationService configService) static PropertiescollectParameters(Value identifierValue, Dialect dialect, RootClass rootClass, Map<String, Object> configuration, ConfigurationService configService) Collect the parameters which should be passed toConfigurable.configure(GeneratorCreationContext, Properties).static intdefaultIncrement(ConfigurationService configService) static intfallbackAllocationSize(Annotation generatorAnnotation, MetadataBuildingContext buildingContext) static StringidentityTablesString(Dialect dialect, RootClass rootClass) static voidinterpretSequenceGenerator(SequenceGenerator sequenceGeneratorAnnotation, IdentifierGeneratorDefinition.Builder definitionBuilder) static voidinterpretTableGenerator(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)
-