public class DatabaseChangeNotifier extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NOTIFY_ALARM_CHANGES
If NOTIFY_ALARM_CHANGES is added to paramList in Constructor, triggers are applied to alarms table
|
static String |
NOTIFY_EVENT_CHANGES
If NOTIFY_EVENT_CHANGES is added to paramList in Constructor, triggers are applied to events table
|
static String |
NOTIFY_MEMOS_CHANGES
If NOTIFY_MEMOS_CHANGES is added to paramList in Constructor, triggers are applied to memos table
|
| Constructor and Description |
|---|
DatabaseChangeNotifier(DbNotifierDataSourceFactory dsFactory,
List<String> paramList)
Constructor sets up database connections and listeners
|
public static final String NOTIFY_ALARM_CHANGES
public static final String NOTIFY_EVENT_CHANGES
public static final String NOTIFY_MEMOS_CHANGES
public DatabaseChangeNotifier(DbNotifierDataSourceFactory dsFactory, List<String> paramList) throws Throwable
dataSource - paramList - Throwablepublic void addDbNotificationClient(DbNotificationClient dbNotificationClient)
dbNotificationClient - public void removeDbNotificationClient(DbNotificationClient dbNotificationClient)
dbNotificationClient - public String getConnectionStatementEvents()
public void setConnectionStatementEvents(String connectionStatementEvents)
connectionStatementEvents - SQL statement to set up triggers on events tablepublic String getDisConnectionStatementEvents()
public void setDisConnectionStatementEvents(String disConnectionStatementEvents)
disConnectionStatementEvents - SQL statement to remove triggers from events tablepublic String getConnectionStatementAlarms()
public void setConnectionStatementAlarms(String connectionStatementAlarms)
connectionStatementAlarms - SQL statement to set up triggers on alarms tablepublic String getDisConnectionStatementAlarms()
public void setDisConnectionStatementAlarms(String disConnectionStatementAlarms)
disConnectionStatementAlarms - SQL statement to remove triggers from alarms tablepublic String getDisConnectionStatementMemos()
public void setDisConnectionStatementMemos(String disConnectionStatementMemos)
disConnectionStatementMemos - SQL statement to remove triggers from memos tablepublic String getConnectionStatementMemos()
public void setConnectionStatementMemos(String connectionStatementMemos)
connectionStatementMemos - SQL statement to set up triggers on memos tableCopyright © 2020. All rights reserved.