Uses of Enum Class
dk.cloudcreate.essentials.components.foundation.postgresql.ListenNotify.SqlOperation
Packages that use ListenNotify.SqlOperation
-
Uses of ListenNotify.SqlOperation in dk.cloudcreate.essentials.components.foundation.postgresql
Methods in dk.cloudcreate.essentials.components.foundation.postgresql that return ListenNotify.SqlOperationModifier and TypeMethodDescriptionTableChangeNotification.getOperation()static ListenNotify.SqlOperationReturns the enum constant of this class with the specified name.static ListenNotify.SqlOperation[]ListenNotify.SqlOperation.values()Returns an array containing the constants of this enum class, in the order they are declared.Method parameters in dk.cloudcreate.essentials.components.foundation.postgresql with type arguments of type ListenNotify.SqlOperationModifier and TypeMethodDescriptionstatic voidListenNotify.addChangeNotificationTriggerToTable(org.jdbi.v3.core.Handle handle, String tableName, List<ListenNotify.SqlOperation> triggerOnSqlOperations, String... includeAdditionalTableColumnsInNotificationPayload) Create (or replace an existing) Table change notificationFUNCTIONand an AFTERTRIGGERto the given Table in order to support the classical Postgresql LISTEN/NOTIFY concept.
The NOTIFY/LISTEN channel is defined by theListenNotify.resolveTableChangeChannelName(String)and the payload is a JSON formatted string containing a "table_name" property as well as any additional columns provided in theincludeAdditionalTableColumnsInNotificationPayloadparameter.Constructors in dk.cloudcreate.essentials.components.foundation.postgresql with parameters of type ListenNotify.SqlOperationModifierConstructorDescriptionprotectedTableChangeNotification(String tableName, ListenNotify.SqlOperation operation)