Record Class AnnotatedQueryHandler<R, Q extends Query<R>>
java.lang.Object
java.lang.Record
app.dodb.smd.api.query.AnnotatedQueryHandler<R,Q>
- All Implemented Interfaces:
QueryHandlerBehaviour<R,Q>
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedQueryHandler(Provider<?> provider, Method method, Class<Q> queryType, MessageArgumentBinder<Q, QueryMessage<R, Q>> argumentBinder) Creates an instance of aAnnotatedQueryHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentBinderrecord component.final booleanIndicates whether some other object is "equal to" this one.static QueryHandlerRegistrystatic QueryHandlerRegistryhandle(QueryMessage<R, Q> queryMessage) final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Provider<?> provider()Returns the value of theproviderrecord component.Returns the value of thequeryTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotatedQueryHandler
public AnnotatedQueryHandler(Provider<?> provider, Method method, Class<Q> queryType, MessageArgumentBinder<Q, QueryMessage<R, Q>> argumentBinder) Creates an instance of aAnnotatedQueryHandlerrecord class.- Parameters:
provider- the value for theproviderrecord componentmethod- the value for themethodrecord componentqueryType- the value for thequeryTyperecord componentargumentBinder- the value for theargumentBinderrecord component
-
-
Method Details
-
from
-
from
-
handle
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
queryType
-
argumentBinder
Returns the value of theargumentBinderrecord component.- Returns:
- the value of the
argumentBinderrecord component
-