Exemplo n.º 1
0
 /**
  * Method "getSchemaNames".
  *
  * @return the schema names concatenated or the empty string (never null)
  */
 public String getSchemaNames() {
   String str = PluginConstant.EMPTY_STRING;
   for (ColumnSet columnSet : getColumnSets()) {
     Package schema = ColumnSetHelper.getParentCatalogOrSchema(columnSet);
     if (schema != null && RelationalPackage.eINSTANCE.getSchema().equals(schema.eClass())) {
       str = str + schema.getName() + " "; // $NON-NLS-1$
     }
   }
   return str;
 }
Exemplo n.º 2
0
 /**
  * Method "getCatalogNames".
  *
  * @return the catalog names concatenated or the empty string (never null)
  */
 public String getCatalogNames() {
   String str = PluginConstant.EMPTY_STRING;
   for (ColumnSet columnSet : getColumnSets()) {
     Package schema = ColumnSetHelper.getParentCatalogOrSchema(columnSet);
     if (schema == null) {
       continue;
     }
     if (RelationalPackage.eINSTANCE.getCatalog().equals(schema.eClass())) {
       str = str + schema.getName() + " "; // $NON-NLS-1$
     } else {
       Package catalog = ColumnSetHelper.getParentCatalogOrSchema(schema);
       if (catalog != null) {
         str = str + catalog.getName() + " "; // $NON-NLS-1$
       }
     }
   }
   return str;
 }