예제 #1
0
  @Override
  public boolean refreshObject(@NotNull DBRProgressMonitor monitor) throws DBException {
    super.refreshObject(monitor);

    getContainer().getTableCache().clearChildrenCache(this);

    tableTriggerCache.clearCache();
    if (partitionCache != null) {
      partitionCache.clearCache();
    }
    if (periodCache != null) {
      periodCache.clearCache();
    }

    getContainer().getConstraintCache().clearObjectCache(this);
    getContainer().getAssociationCache().clearObjectCache(this);
    getContainer().getReferenceCache().clearObjectCache(this);

    // DF: Clear base index/trigger cache. Not cheap but didn't found another way..
    getContainer().getIndexCache().clearCache();
    getContainer().getTriggerCache().clearCache();

    return true;
  }
예제 #2
0
 @Association
 public Collection<DB2Trigger> getTriggers(DBRProgressMonitor monitor) throws DBException {
   return tableTriggerCache.getAllObjects(monitor, this);
 }