use of org.jumpmind.symmetric.service.ITriggerRouterService in project symmetric-ds by JumpMind.
the class RestService method dropTriggersImpl.
private void dropTriggersImpl(ISymmetricEngine engine, String tableName) {
ITriggerRouterService triggerRouterService = engine.getTriggerRouterService();
HashSet<String> tables = new HashSet<String>();
tables.add(tableName);
triggerRouterService.dropTriggers(tables);
}
use of org.jumpmind.symmetric.service.ITriggerRouterService in project symmetric-ds by JumpMind.
the class RestService method syncTriggersByTableImpl.
private void syncTriggersByTableImpl(ISymmetricEngine engine, String catalogName, String schemaName, String tableName, boolean force) {
ITriggerRouterService triggerRouterService = engine.getTriggerRouterService();
Table table = getSymmetricEngine().getDatabasePlatform().getTableFromCache(catalogName, schemaName, tableName, true);
if (table == null) {
throw new NotFoundException();
}
triggerRouterService.syncTriggers(table, force);
}
Aggregations