table.setName(attributeValue); } else if (attributeName.equalsIgnoreCase("catalog")) { table.setCatalog(attributeValue); } else if (attributeName.equalsIgnoreCase("schema")) { table.setSchema(attributeValue);
table.setCatalog(catalog); metaData.setCatalog(catalog);
table.setCatalog(catalogName); table.setSchema(schemaName); Router router = triggerRouterService.getRouterById(routerId, false); if (router != null && setTargetTableName) { if (StringUtils.equals(Constants.NONE_TOKEN, router.getTargetCatalogName())) { table.setCatalog(null); } else if (StringUtils.isNotBlank(router.getTargetCatalogName())) { table.setCatalog(router.getTargetCatalogName());
Table targetTable = table.copy(); targetTable.setSchema(schema); targetTable.setCatalog(catalog); insertSql = DmlStatementFactory.createDmlStatement( compatible.toString().toLowerCase(), DmlType.INSERT, targetTable, useQuotedIdentifiers);
public boolean start(Table table) { /* * in the case when the target schema or catalog is set then we need to * use the previous schema or catalog to look up the table locally. */ this.currentTable = platform.getTableFromCache(table.getOldCatalog(), table.getOldSchema(), table.getName(), false); this.currentTable = currentTable.copyAndFilterColumns(table.getColumnNames(), table.getPrimaryKeyColumnNames(), true); /* * restore the schema and catalog from the passed in table because they * might have not been originally set, but were set when looking up the table locally */ this.currentTable.setSchema(table.getSchema()); this.currentTable.setCatalog(table.getCatalog()); this.currentTable.setName(table.getName()); return true; }