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 Details

    • ActionGrouping

      public ActionGrouping(String contributor, Action databaseAction, Action scriptAction)
      Creates an instance of a ActionGrouping record class.
      Parameters:
      contributor - the value for the contributor record component
      databaseAction - the value for the databaseAction record component
      scriptAction - the value for the scriptAction record component
  • Method Details

    • interpret

      @Internal public static SchemaManagementToolCoordinator.ActionGrouping interpret(Map<?,?> configurationValues)
      For test use. See interpret(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(since="7.2", forRemoval=true) public String getContributor()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDatabaseAction

      @Deprecated(since="7.2", forRemoval=true) public Action getDatabaseAction()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getScriptAction

      @Deprecated(since="7.2", forRemoval=true) public Action getScriptAction()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • contributor

      public String contributor()
      Returns the value of the contributor record component.
      Returns:
      the value of the contributor record component
    • databaseAction

      public Action databaseAction()
      Returns the value of the databaseAction record component.
      Returns:
      the value of the databaseAction record component
    • scriptAction

      public Action scriptAction()
      Returns the value of the scriptAction record component.
      Returns:
      the value of the scriptAction record component