Record Class RepositoryDetails

java.lang.Object
java.lang.Record
io.github.blyznytsiaorg.bibernate.dao.method.RepositoryDetails
Record Components:
repositoryName - The name of the repository.
primaryKeyType - The type of the primary key used by the repository.
entityType - The type of the entity managed by the repository.
interfaces - The list of interfaces implemented by the repository.
methodsMetadata - A map containing metadata for each repository method, keyed by method name.

public record RepositoryDetails(String repositoryName, Type primaryKeyType, Type entityType, List<String> interfaces, Map<String,MethodMetadata> methodsMetadata) extends Record
Represents details about a repository, including its name, primary key type, entity type, implemented interfaces, and metadata for each repository method.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

  • Constructor Details

    • RepositoryDetails

      public RepositoryDetails(String repositoryName, Type primaryKeyType, Type entityType, List<String> interfaces, Map<String,MethodMetadata> methodsMetadata)
      Creates an instance of a RepositoryDetails record class.
      Parameters:
      repositoryName - the value for the repositoryName record component
      primaryKeyType - the value for the primaryKeyType record component
      entityType - the value for the entityType record component
      interfaces - the value for the interfaces record component
      methodsMetadata - the value for the methodsMetadata record component
  • Method Details

    • 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.
    • repositoryName

      public String repositoryName()
      Returns the value of the repositoryName record component.
      Returns:
      the value of the repositoryName record component
    • primaryKeyType

      public Type primaryKeyType()
      Returns the value of the primaryKeyType record component.
      Returns:
      the value of the primaryKeyType record component
    • entityType

      public Type entityType()
      Returns the value of the entityType record component.
      Returns:
      the value of the entityType record component
    • interfaces

      public List<String> interfaces()
      Returns the value of the interfaces record component.
      Returns:
      the value of the interfaces record component
    • methodsMetadata

      public Map<String,MethodMetadata> methodsMetadata()
      Returns the value of the methodsMetadata record component.
      Returns:
      the value of the methodsMetadata record component