/** * find a physical table in the domain * * @param tableId the table id * @return physical table */ public IPhysicalModel findPhysicalModel(String modelId) { for (IPhysicalModel model : getPhysicalModels()) { if (modelId.equals(model.getId())) { return model; } } return null; }
/** * find a physical table in the domain * * @param tableId the table id * @return physical table */ public IPhysicalTable findPhysicalTable(String tableId) { for (IPhysicalModel model : getPhysicalModels()) { for (IPhysicalTable table : model.getPhysicalTables()) { if (tableId.equals(table.getId())) { return table; } } } return null; }