throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException { EntityType entityType = EntityType.valueOf(mapping.getEntityType().trim().toUpperCase()); String entityName = normalizeIdentifier(mapping.getEntityName()); boolean commited = false; query.setUnique(true); MWMMapping mMapping = (MWMMapping) query.execute( resourcePlan, entityType.toString(), entityName); mMapping.setPool(pool);
throws AlreadyExistsException, NoSuchObjectException, InvalidOperationException, MetaException { EntityType entityType = EntityType.valueOf(mapping.getEntityType().trim().toUpperCase()); String entityName = normalizeIdentifier(mapping.getEntityName()); boolean commited = false; query.setUnique(true); 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; }
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; }