/** * {@inheritDoc} */ @Override public void updateObjectInternal(final FUNCTIONIMPL object, final FUNCTIONIMPL updateObject) throws DMPPersistenceException { final LinkedList<String> parameters = object.getParameters(); updateObject.setParameters(parameters); updateObject.setFunctionDescription(object.getFunctionDescription()); super.updateObjectInternal(object, updateObject); }
/** * {@inheritDoc}<br/> * Updates the name, description, parameters and machine processable function description of the function. */ @Override protected POJOCLASS prepareObjectForUpdate(final POJOCLASS objectWithUpdates, final POJOCLASS object) { super.prepareObjectForUpdate(objectWithUpdates, object); object.setFunctionDescription(objectWithUpdates.getFunctionDescription()); object.setParameters(objectWithUpdates.getParameters()); return object; } }
public POJOCLASS createFunction(final String name, final String description, final LinkedList<String> parameters) throws Exception { // TODO: think about this? final String uuid = UUIDService.getUUID(pojoClassName); final POJOCLASS function = createNewObject(uuid); function.setName(name); function.setDescription(description); function.setParameters(parameters); return createAndCompareObject(function, function); }
function.setParameters(parameters);