Package org.hibernate.tool.schema.spi
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 aActionGrouping
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontributor
record component.Returns the value of thedatabaseAction
record component.static Action
determineJpaDbActionSetting
(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for testsstatic Action
determineJpaScriptActionSetting
(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for testsfinal boolean
Indicates 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 int
hashCode()
Returns a hash code value for this object.For test use.Returns the value of thescriptAction
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ActionGrouping
Creates an instance of aActionGrouping
record class.- Parameters:
contributor
- the value for thecontributor
record componentdatabaseAction
- the value for thedatabaseAction
record componentscriptAction
- the value for thescriptAction
record component
-
-
Method Details
-
interpret
@Internal public static SchemaManagementToolCoordinator.ActionGrouping interpret(Map<?, ?> configurationValues) For test use. Seeinterpret(Metadata, Map)
for the "real" impl -
determineJpaDbActionSetting
@Internal public static Action determineJpaDbActionSetting(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for tests -
determineJpaScriptActionSetting
@Internal public static Action determineJpaScriptActionSetting(Map<?, ?> configuration, String contributor, Action defaultValue) Exposed for tests -
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thecontributor
record component.- Returns:
- the value of the
contributor
record component
-
databaseAction
Returns the value of thedatabaseAction
record component.- Returns:
- the value of the
databaseAction
record component
-
scriptAction
Returns the value of thescriptAction
record component.- Returns:
- the value of the
scriptAction
record component
-