for (MWMMapping copyMapping : src.getMappings()) { MWMPool pool = null; if (copyMapping.getPool() != null) { pool = pools.get(copyMapping.getPool().getPath()); MWMMapping mapping = new MWMMapping(dest, copyMapping.getEntityType(), copyMapping.getEntityName(), pool, copyMapping.getOrdering()); pm.makePersistent(mapping); mappings.add(mapping);
private WMMapping fromMMapping(MWMMapping mMapping, String rpName) { WMMapping result = new WMMapping(rpName, mMapping.getEntityType().toString(), mMapping.getEntityName()); if (mMapping.getPool() != null) { result.setPoolPath(mMapping.getPool().getPath()); } if (mMapping.getOrdering() != null) { result.setOrdering(mMapping.getOrdering()); } result.setNs(mMapping.getResourcePlan().getNs()); return result; }
MWMMapping mMapping = new MWMMapping(resourcePlan, entityType, entityName, pool, mapping.getOrdering()); pm.makePersistent(mMapping); MWMMapping mMapping = (MWMMapping) query.execute( resourcePlan, entityType.toString(), entityName); mMapping.setPool(pool);
MWMMapping mMapping = new MWMMapping(resourcePlan, entityType, entityName, pool, mapping.getOrdering()); pm.makePersistent(mMapping); MWMMapping mMapping = (MWMMapping) query.execute( resourcePlan, entityType.toString(), entityName); mMapping.setPool(pool);
private WMMapping fromMMapping(MWMMapping mMapping, String rpName) { WMMapping result = new WMMapping(rpName, mMapping.getEntityType().toString(), mMapping.getEntityName()); if (mMapping.getPool() != null) { result.setPoolPath(mMapping.getPool().getPath()); } if (mMapping.getOrdering() != null) { result.setOrdering(mMapping.getOrdering()); } return result; }
for (MWMMapping copyMapping : src.getMappings()) { MWMPool pool = null; if (copyMapping.getPool() != null) { pool = pools.get(copyMapping.getPool().getPath()); MWMMapping mapping = new MWMMapping(dest, copyMapping.getEntityType(), copyMapping.getEntityName(), pool, copyMapping.getOrdering()); pm.makePersistent(mapping); mappings.add(mapping);