コード例 #1
0
 @Override
 protected boolean handleCacheReadError(DBException error) {
   // #271, #501: in some databases (AWS?) pg_authid is not accessible
   // FIXME: maybe some better workaround?
   if (PostgreConstants.EC_PERMISSION_DENIED.equals(error.getDatabaseState())) {
     log.warn(error);
     setCache(Collections.<PostgreAuthId>emptyList());
     return true;
   }
   return false;
 }
コード例 #2
0
ファイル: DBNDatabaseNode.java プロジェクト: thecocce/dbeaver
 public List<Class<?>> getChildrenTypes(DBXTreeNode useMeta) {
   List<DBXTreeNode> childMetas =
       useMeta == null ? getMeta().getChildren(this) : Collections.singletonList(useMeta);
   if (CommonUtils.isEmpty(childMetas)) {
     return null;
   } else {
     List<Class<?>> result = new ArrayList<>();
     for (DBXTreeNode childMeta : childMetas) {
       if (childMeta instanceof DBXTreeItem) {
         Class<?> childrenType = getChildrenClass((DBXTreeItem) childMeta);
         if (childrenType != null) {
           result.add(childrenType);
         }
       }
     }
     return result;
   }
 }