Component currentComponent = new Component(UUIDService.getUUID(Component.class.getSimpleName()));
final Component component = new Component(componentId);
/** * Create a new {@code Component} as a copy from a existing component with a specific id. <br> * <b>Use with care!</b> * <p> * This factory is to be used by {@link org.dswarm.persistence.model.job.utils.TransformationDeserializer} to avoid reflection * based access to a private/protected field, since the Json deserializer needs a way to set the id that was provided by the * JSON. * </p> * <p> * The id is otherwise assigned by the database/Hibernate layer. You should never need this outside of * {@code TransformationDeserializer}. * </p> * * @param component the base component that will be copied * @param uuid the target component's id value * @return a new component with the given id and all other attributes copied from the provided component. */ public static Component withId(final Component component, final String uuid) { final Component newComponent = new Component(uuid); newComponent.setFunction(component.getFunction()); newComponent.setInputComponents(component.getInputComponents()); newComponent.setOutputComponents(component.getOutputComponents()); newComponent.setParameterMappings(component.getParameterMappings()); newComponent.setDescription(component.getDescription()); newComponent.setName(component.getName()); return newComponent; } }
final Component component = new Component(componentUUID);
final Component component1 = new Component(component1UUID); component1.setName(component1Name); component1.setFunction(function1); final Component component2 = new Component(component2UUID); component2.setName(component2Name); component2.setFunction(function2); final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentId); transformationComponent.setName("prepare first name"); transformationComponent.setFunction(transformation); final Component transformationComponent2 = new Component(transformationComponentId2); transformationComponent2.setName("prepare family name"); transformationComponent2.setFunction(transformation); final Component component4 = new Component(component4UUID); component4.setName(component4Name); component4.setFunction(function4); final Component transformationComponent3 = new Component(transformationComponent3UUID); transformationComponent3.setName(transformation2.getName() + " (component)"); transformationComponent3.setFunction(transformation2);
final Component component1 = new Component(component1UUID); component1.setName(component1Name); component1.setFunction(function1); final Component component2 = new Component(component2UUID); component2.setName(component2Name); component2.setFunction(function2); final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentUUID); transformationComponent.setName("prepare first name"); transformationComponent.setFunction(transformation); final Component transformationComponent2 = new Component(transformationComponent2UUID); transformationComponent2.setName("prepare family name"); transformationComponent2.setFunction(transformation); final Component component4 = new Component(component4UUID); component4.setName(component4Name); component4.setFunction(function4); final Component transformationComponent3 = new Component(transformationComponent3UUID); transformationComponent3.setName(transformation2.getName() + " (component)"); transformationComponent3.setFunction(transformation2);
final Component component1 = new Component(component1UUID); component1.setName(component1Name); component1.setFunction(function1); final Component component2 = new Component(component2UUID); component2.setName(component2Name); component2.setFunction(function2); final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentUUID); transformationComponent.setName("prepare first name"); transformationComponent.setFunction(transformation); final Component transformationComponent2 = new Component(transformationComponent2UUID); transformationComponent2.setName("prepare family name"); transformationComponent2.setFunction(transformation); final Component component4 = new Component(component4UUID); component4.setName(component4Name); component4.setFunction(function4); final Component transformationComponent3 = new Component(transformationComponent3UUID); transformationComponent3.setName(transformation2.getName() + " (component)"); transformationComponent3.setFunction(transformation2);
final Component component1 = new Component(component1UUID); final Component component2 = new Component(component2UUID); final Component component = new Component(componentUUID); final Component transformationComponent = new Component(transformationComponentUUID); final Component transformationComponent2 = new Component(transformationComponent2UUID); final Component component4 = new Component(component4UUID); final Component transformationComponent3 = new Component(transformationComponent3UUID);
final Component component1 = new Component(component1UUID); final Component component2 = new Component(component2UUID); final Component component = new Component(componentUUID); final Component transformationComponent = new Component(transformationComponentUUID); final Component transformationComponent2 = new Component(transformationComponent2UUID); final Component component4 = new Component(component4UUID); final Component transformationComponent3 = new Component(transformationComponent3UUID);
final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentUUID); transformationComponent.setName(transformation.getName() + " (component)"); transformationComponent.setFunction(transformation);
final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentUUID); transformationComponent.setName(transformation.getName() + " (component)"); transformationComponent.setFunction(transformation);
final Component component = new Component(componentUUID); component.setName(componentName); component.setFunction(function); final Component transformationComponent = new Component(transformationComponentUUID); transformationComponent.setName(transformation.getName() + " (component)"); transformationComponent.setFunction(transformation);