Package dk.cloudcreate.essentials.components.foundation.postgresql
package dk.cloudcreate.essentials.components.foundation.postgresql
-
ClassDescriptionThrown by
PostgresqlUtil.checkIsValidTableOrColumnName(String)in case a table or column name is null, empty, matches a reserved keyword, or contains invalid characters.Helper class for setting up the NOTIFY part of the classical Postgresql LISTEN/NOTIFY concept.
See Listen Notify and
SQL Notify Security It is the responsibility of the user of this component to sanitize any table or column names provided to methods in this class to ensure the security of all the SQL statements generated by this component.MultiTableChangeListener<T extends TableChangeNotification>Variant ofListenNotify.listen(Jdbi, String, Duration)that allows you to listen for notifications from multiple tables using a single polling thread Security It is the responsibility of the user of this component to sanitize any table or column names provided to methods in this class to ensure the security of all the SQL statements generated by this component.Interface for extracting a unique key from the JSON representation of aNotification.getParameter()JSON to determine if the notification should be duplicate.
The key extracted fromNotificationDuplicationFilter.extractDuplicationKey(JsonNode)will be used insideMultiTableChangeListenerfor duplication checks across allNotification's returned in a single poll.
If an emptyOptionalis returned then the given notification won't be deduplicated.
If two or moreNotification's in a given poll batch share the same duplication key, then only one of them will be published to the listeners registered with theMultiTableChangeListenerDefault filter to extract the "table_name" property from a JSON parameter.Manages a chain ofNotificationDuplicationFilterinstances and uses them to extract unique keys from theNotification.getParameter()JSON content.
The key extracted fromNotificationDuplicationFilter.extractDuplicationKey(JsonNode)will be used insideMultiTableChangeListenerfor duplication checks across allNotification's returned in one poll.
If an emptyOptionalis returned then the given notification won't be deduplicated.
If two or moreNotification's in a given poll batch share the same duplication key, then only one of them will be published to the listeners registered with theMultiTableChangeListenerLog the execution time for SQL statementsRepresents a base notification, which is a change to a given table caused by a specificListenNotify.SqlOperation