Exemplo n.º 1
0
 private Map<String, DatabaseImpl> initializeDBTypeData() {
   Map<String, DatabaseImpl> dbTypeDataMap = new HashMap<String, DatabaseImpl>();
   for (IDatabase dbImpl : DatabaseImplSource.getInstance().getAllDatabasesForModule(_module)) {
     dbTypeDataMap.put(dbImpl.getNamespace(), (DatabaseImpl) dbImpl);
   }
   return dbTypeDataMap;
 }
Exemplo n.º 2
0
  private Set<String> initializeTypeNames() {
    Set<String> typeNames = new HashSet<String>();

    for (IDatabase database : _typeDataByNamespace.get().values()) {
      typeNames.add(database.getNamespace() + "." + TransactionType.TYPE_NAME);
      typeNames.add(database.getNamespace() + "." + DatabaseAccessType.TYPE_NAME);
      for (IDBTable table : database.getAllTables()) {
        if (!table.getName().contains("join_")) {
          // TODO - AHK - Should there be a utility method for converting from table to entity name?
          typeNames.add(database.getNamespace() + "." + table.getName());
        }
      }
    }
    for (SQLFileInfo sqlFileInfo : _sqlFilesByName.get().values()) {
      typeNames.add(sqlFileInfo.getTypeName());
    }
    return typeNames;
  }