Exemplo n.º 1
0
  @Override
  public final List<String> getInputSchemata() {
    if (inputSchemata == null) {
      inputSchemata = new ArrayList<String>();

      // [#1312] Allow for ommitting inputSchema configuration. Generate
      // All schemata instead
      if (configuredSchemata.size() == 1
          && StringUtils.isBlank(configuredSchemata.get(0).getInputSchema())) {
        try {
          for (SchemaDefinition schema : getSchemata0()) {
            inputSchemata.add(schema.getName());
          }
        } catch (SQLException e) {
          log.error("Could not load schemata", e);
        }
      } else {
        for (Schema schema : configuredSchemata) {
          /* [pro] xx

          xx xxxxxxx xxxxxx xxx xxxxxxxxxxxxxxxx xxxxxx xxxxxx
          xx xxxxx xxxxxxxxxx xxxxxxxxxxxxxxx x
              xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
          x
          xxxx
          xx [/pro] */
          {
            inputSchemata.add(schema.getInputSchema());
          }
        }
      }
    }

    return inputSchemata;
  }
Exemplo n.º 2
0
  @Override
  public final List<String> getInputSchemata() {
    if (inputSchemata == null) {
      inputSchemata = new ArrayList<String>();

      // [#1312] Allow for ommitting inputSchema configuration. Generate
      // All schemata instead
      if (configuredSchemata.size() == 1
          && StringUtils.isBlank(configuredSchemata.get(0).getInputSchema())) {
        try {
          for (SchemaDefinition schema : getSchemata0()) {
            inputSchemata.add(schema.getName());
          }
        } catch (SQLException e) {
          log.error("Could not load schemata", e);
        }
      } else {
        for (Schema schema : configuredSchemata) {

          // [#1418] Oracle has case-insensitive schema names.
          if (this instanceof OracleDatabase) {
            inputSchemata.add(schema.getInputSchema().toUpperCase());
          } else {
            inputSchemata.add(schema.getInputSchema());
          }
        }
      }
    }

    return inputSchemata;
  }
Exemplo n.º 3
0
  @Override
  @Deprecated
  public String getOutputSchema(String inputSchema) {
    for (Schema schema : configuredSchemata) {
      if (inputSchema.equals(schema.getInputSchema())) {
        return schema.getOutputSchema();
      }
    }

    return inputSchema;
  }