Record Class SchemaManagementToolCoordinator.ActionGrouping
java.lang.Object
java.lang.Record
org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.ActionGrouping
- Enclosing class:
SchemaManagementToolCoordinator
public static record SchemaManagementToolCoordinator.ActionGrouping(String contributor, Action databaseAction, Action scriptAction)
extends Record
For JPA-style schema-gen, database and script target handing are configured
individually - this tuple allows interpreting the action for both targets
simultaneously
-
Constructor Summary
ConstructorsConstructorDescriptionActionGrouping(String contributor, Action databaseAction, Action scriptAction) Creates an instance of aActionGroupingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontributorrecord component.Returns the value of thedatabaseActionrecord component.static ActiondetermineJpaDbActionSetting(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for testsstatic ActiondetermineJpaScriptActionSetting(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for testsfinal booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.For test use.Returns the value of thescriptActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionGrouping
Creates an instance of aActionGroupingrecord class.- Parameters:
contributor- the value for thecontributorrecord componentdatabaseAction- the value for thedatabaseActionrecord componentscriptAction- the value for thescriptActionrecord component
-
-
Method Details
-
interpret
@Internal public static SchemaManagementToolCoordinator.ActionGrouping interpret(Map<?, ?> configurationValues) For test use. Seeinterpret(Metadata, Map)for the "real" impl -
determineJpaDbActionSetting
-
determineJpaScriptActionSetting
-
interpret
public static Set<SchemaManagementToolCoordinator.ActionGrouping> interpret(Set<String> contributors, Map<?, ?> configuration) -
interpret
public static Set<SchemaManagementToolCoordinator.ActionGrouping> interpret(Metadata metadata, Map<?, ?> configuration) -
getContributor
Deprecated, for removal: This API element is subject to removal in a future version. -
getDatabaseAction
Deprecated, for removal: This API element is subject to removal in a future version. -
getScriptAction
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
contributor
Returns the value of thecontributorrecord component.- Returns:
- the value of the
contributorrecord component
-
databaseAction
Returns the value of thedatabaseActionrecord component.- Returns:
- the value of the
databaseActionrecord component
-
scriptAction
Returns the value of thescriptActionrecord component.- Returns:
- the value of the
scriptActionrecord component
-