Record Class QueryableEvent<T>
java.lang.Object
java.lang.Record
io.quarkiverse.queryable.runtime.QueryableEvent<T>
-
Constructor Summary
ConstructorsConstructorDescriptionQueryableEvent(Class<?> entityType, QueryableOperation operation, boolean after, Optional<T> entity, Optional<Object> id, Optional<List<T>> results) Creates an instance of aQueryableEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanafter()Returns the value of theafterrecord component.static <T> QueryableEvent<T> after(Class<?> entityType, QueryableOperation operation, List<T> results) static <T> QueryableEvent<T> after(Class<?> entityType, QueryableOperation operation, T entity, Object id) static <T> QueryableEvent<T> before(Class<?> entityType, QueryableOperation operation, T entity, Object id) entity()Returns the value of theentityrecord component.Class<?> Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theoperationrecord component.results()Returns the value of theresultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryableEvent
public QueryableEvent(Class<?> entityType, QueryableOperation operation, boolean after, Optional<T> entity, Optional<Object> id, Optional<List<T>> results) Creates an instance of aQueryableEventrecord class.- Parameters:
entityType- the value for theentityTyperecord componentoperation- the value for theoperationrecord componentafter- the value for theafterrecord componententity- the value for theentityrecord componentid- the value for theidrecord componentresults- the value for theresultsrecord component
-
-
Method Details
-
before
public static <T> QueryableEvent<T> before(Class<?> entityType, QueryableOperation operation, T entity, Object id) -
after
public static <T> QueryableEvent<T> after(Class<?> entityType, QueryableOperation operation, T entity, Object id) -
after
public static <T> QueryableEvent<T> after(Class<?> entityType, QueryableOperation operation, List<T> results) -
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. -
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
after
public boolean after()Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-
entity
-
id
-
results
-