org.eclipse.persistence.internal.xr.Invocation Maven / Gradle / Ivy
Show all versions of eclipselink Show documentation
/*
* Copyright (c) 1998, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// Oracle - initial API and implementation from Oracle TopLink
package org.eclipse.persistence.internal.xr;
// Javase imports
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
// Java extension imports
// EclipseLink imports
/**
* INTERNAL: An Invocation
holds runtime argument values that are used by an
* {@link XRServiceAdapter} to invoke a named {@link Operation}
*
* @author Mike Norman - [email protected]
* @since EclipseLink 1.x
*/
public class Invocation {
protected String name;
protected Map parameters = new HashMap();
public Invocation() {
super();
}
public Invocation(String name) {
super();
this.name = name;
}
/**
* INTERNAL: Get the name of this Invocation
* @return name of this Invocation
*/
public String getName() {
return name;
}
/**
*
INTERNAL: Set the name of this Invocation
* @param name of this Invocation
*/
public void setName(String name) {
this.name = name;
}
/**
*
PUBLIC: Get the runtime argument value with the given name
* @param key name of argument
* @return desired runtime argument value
*/
public Object getParameter(String key) {
return parameters.get(key);
}
/**
*
INTERNAL: Set a runtime argument value
* @param key name of argument
* @param value runtime argument value
*/
public void setParameter(String key, Object value) {
parameters.put(key, value);
}
/**
*
INTERNAL: Get the runtime argument values
* @return runtime argument values
*/
public Collection