Record Class MethodMatchInfo.QueryDefinition
java.lang.Object
java.lang.Record
io.micronaut.data.processor.visitors.finders.MethodMatchInfo.QueryDefinition
- Enclosing class:
MethodMatchInfo
public static record MethodMatchInfo.QueryDefinition(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, QueryResult queryResult, boolean optimisticLock)
extends Record
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionQueryDefinition(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, QueryResult queryResult, boolean optimisticLock) Creates an instance of aQueryDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationTyperecord component.booleanReturns the value of theoptimisticLockrecord component.Returns the value of thequeryResultrecord component.@Nullable io.micronaut.inject.ast.TypedElementReturns the value of theresultTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryDefinition
public QueryDefinition(DataMethod.OperationType operationType, @Nullable io.micronaut.inject.ast.TypedElement resultType, QueryResult queryResult, boolean optimisticLock) Creates an instance of aQueryDefinitionrecord class.- Parameters:
operationType- the value for theoperationTyperecord componentresultType- the value for theresultTyperecord componentqueryResult- the value for thequeryResultrecord componentoptimisticLock- the value for theoptimisticLockrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operationType
Returns the value of theoperationTyperecord component.- Returns:
- the value of the
operationTyperecord component
-
resultType
public @Nullable io.micronaut.inject.ast.TypedElement resultType()Returns the value of theresultTyperecord component.- Returns:
- the value of the
resultTyperecord component
-
queryResult
Returns the value of thequeryResultrecord component.- Returns:
- the value of the
queryResultrecord component
-
optimisticLock
public boolean optimisticLock()Returns the value of theoptimisticLockrecord component.- Returns:
- the value of the
optimisticLockrecord component
-