/** * PUBLIC: * Use to specify the names of the mirroring historical tables. * <p> * Explicitly states that <code>sourceTableName</code> is mirrored by history table * <code>historyTableName</code>. * The order in which tables are added with descriptor.addTableName() * should still match the order in which mirroring historical tables are * added with descriptor.addMirroringHistoryTableName(). */ public void addHistoryTableName(String sourceTableName, String historyTableName) { if ((sourceTableName == null) || sourceTableName.equals("")) { addHistoryTableName(historyTableName); } HistoricalDatabaseTable table = new HistoricalDatabaseTable(sourceTableName); table.setHistoricalName(historyTableName); // Note that the equality check is only on sourceTableName, not historyTableName. int index = getHistoricalTables().indexOf(table); if (index == -1) { getHistoricalTables().add(table); } else { getHistoricalTables().set(index, table); } }
/** * PUBLIC: * Use to specify the names of the mirroring historical tables. * <p> * Explicitly states that <code>sourceTableName</code> is mirrored by history table * <code>historyTableName</code>. * The order in which tables are added with descriptor.addTableName() * should still match the order in which mirroring historical tables are * added with descriptor.addMirroringHistoryTableName(). */ public void addHistoryTableName(String sourceTableName, String historyTableName) { if ((sourceTableName == null) || sourceTableName.equals("")) { addHistoryTableName(historyTableName); } HistoricalDatabaseTable table = new HistoricalDatabaseTable(sourceTableName); table.setHistoricalName(historyTableName); // Note that the equality check is only on sourceTableName, not historyTableName. int index = getHistoricalTables().indexOf(table); if (index == -1) { getHistoricalTables().add(table); } else { getHistoricalTables().set(index, table); } }
/** * PUBLIC: * Use to specify the names of the mirroring historical tables. * <p> * Explicitly states that <code>sourceTableName</code> is mirrored by history table * <code>historyTableName</code>. * The order in which tables are added with descriptor.addTableName() * should still match the order in which mirroring historical tables are * added with descriptor.addMirroringHistoryTableName(). */ public void addHistoryTableName(String sourceTableName, String historyTableName) { if ((sourceTableName == null) || sourceTableName.equals("")) { addHistoryTableName(historyTableName); } HistoricalDatabaseTable table = new HistoricalDatabaseTable(sourceTableName); table.setHistoricalName(historyTableName); // Note that the equality check is only on sourceTableName, not historyTableName. int index = getHistoricalTables().indexOf(table); if (index == -1) { getHistoricalTables().add(table); } else { getHistoricalTables().set(index, table); } }
policy.addEndFieldName("ROW_END"); policy.addHistoryTableName("CLIENT_SEGMENTS", "CLIENT_SEGMENTS_HIST"); mapping.setHistoryPolicy(policy);