Record Class PostgresNotificationQuery
java.lang.Object
java.lang.Record
io.micronaut.data.model.query.builder.sql.postgres.PostgresNotificationQuery
- Record Components:
query- the mapped SELECT querykeys- primary-key columns and property paths in query parameter order
@Internal
public record PostgresNotificationQuery(String query, List<PostgresNotificationQuery.Key> keys)
extends Record
Primary-key reload SQL and notification key mappings shared by annotation processing and runtime fallback.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA mapped notification key shared by query generation and trigger installation. -
Constructor Summary
ConstructorsConstructorDescriptionPostgresNotificationQuery(String query, List<PostgresNotificationQuery.Key> keys) Creates a query with immutable, ordered key mappings. -
Method Summary
Modifier and TypeMethodDescriptionstatic PostgresNotificationQuerybuild(PersistentEntity entity, PersistentEntityCriteriaBuilder builder) Builds a reload using the query builder's existing scalar, composite, and embedded ID support.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyColumns(PersistentEntity entity) Resolves trigger columns without building a query or requiring repository operations.keys()Returns the value of thekeysrecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostgresNotificationQuery
Creates a query with immutable, ordered key mappings.
-
-
Method Details
-
build
public static PostgresNotificationQuery build(PersistentEntity entity, PersistentEntityCriteriaBuilder builder) Builds a reload using the query builder's existing scalar, composite, and embedded ID support.- Parameters:
entity- the entity mappingbuilder- the compile-time or runtime criteria builder- Returns:
- the reload SQL and key mappings in binding order
- Throws:
IllegalArgumentException- if a key mapping or an additional query parameter is unsupported
-
keyColumns
Resolves trigger columns without building a query or requiring repository operations.- Parameters:
entity- the entity mapping- Returns:
- the validated primary-key column names
- Throws:
IllegalArgumentException- if the key mapping is unsupported
-
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). -
query
-
keys
-