Record Class AotRepositoryMethod
java.lang.Object
java.lang.Record
org.springframework.data.repository.aot.generate.AotRepositoryMethod
public record AotRepositoryMethod(String name, String signature, @Nullable QueryMetadata query, @Nullable org.springframework.data.repository.aot.generate.AotFragmentTarget fragment)
extends Record
Value object capturing metadata about a repository method.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionAotRepositoryMethod(String name, String signature, @Nullable QueryMetadata query, @Nullable org.springframework.data.repository.aot.generate.AotFragmentTarget fragment) Creates an instance of aAotRepositoryMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable org.springframework.data.repository.aot.generate.AotFragmentTargetfragment()Returns the value of thefragmentrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.@Nullable QueryMetadataquery()Returns the value of thequeryrecord component.Returns the value of thesignaturerecord component.org.springframework.data.repository.aot.generate.JSONObjecttoJson()Convert thisAotRepositoryMethodto aJSONObject.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AotRepositoryMethod
public AotRepositoryMethod(String name, String signature, @Nullable QueryMetadata query, @Nullable org.springframework.data.repository.aot.generate.AotFragmentTarget fragment) Creates an instance of aAotRepositoryMethodrecord class.- Parameters:
name- the value for thenamerecord componentsignature- the value for thesignaturerecord componentquery- the value for thequeryrecord componentfragment- the value for thefragmentrecord component
-
-
Method Details
-
toJson
public org.springframework.data.repository.aot.generate.JSONObject toJson() throws org.springframework.data.repository.aot.generate.JSONExceptionConvert thisAotRepositoryMethodto aJSONObject.- Returns:
- Throws:
org.springframework.data.repository.aot.generate.JSONException
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
fragment
public @Nullable org.springframework.data.repository.aot.generate.AotFragmentTarget fragment()Returns the value of thefragmentrecord component.- Returns:
- the value of the
fragmentrecord component
-