Package oracle.as.scheduler
Class ParameterList
java.lang.Object
oracle.as.scheduler.ParameterList
- All Implemented Interfaces:
Serializable
Stores list of parameters. Instance of this class is used to declare all
the parameters of a given JobDefinition, JobType or JobSet definition.
This can include both application level parameters and system properties
for a given definition (metadata object).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of ParameterList.ParameterList(ParameterList source) Constructs an instance with the same list mappings as the specified object. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a parameter of type Boolean to this list with the given name and value.voidAdds a parameter of type Integer to this list with the given name and value.voidAdds a parameter of type Long to this list with the given name and value.voidAdds a parameter of type String to this list with the given name and value.voidadd(String name, ParameterInfo.DataType type) Adds a parameter to this list with the given name and data type.voidadd(String name, ParameterInfo.DataType type, Object value, boolean readOnly) Adds a parameter to the list with the given information about the parameter.voidadd(String name, ParameterInfo.DataType type, Object value, boolean readOnly, boolean legacy) Adds a parameter to the list with the given information about the parameter.voidadd(ParameterInfo param) Adds a parameter to the list.voidclear()Removes all parameter information from this list.intcompareSpecial(Object obj) Compares the specific object with this object for equality, including parameters.booleanIndicates if this list contains a parameter for the given name.booleanCompares the specific object with this object for equality.Returns the information about the given parameter from this list.getAll()Returns a collection view of all the parameters from this list.getNames()Returns all the names of the parameters in this list.Gets the value for a parameter in the list.inthashCode()Returns the hash code value of this list.voidRemoves the given parameter from the list.intsize()Returns the number of parameters in this list.
-
Constructor Details
-
ParameterList
public ParameterList()Constructs an instance of ParameterList. -
ParameterList
Constructs an instance with the same list mappings as the specified object.- Parameters:
source- the list whose parameters are to be placed in this object- Throws:
NullPointerException- if the specified list isnull.
-
-
Method Details
-
add
Adds a parameter of type String to this list with the given name and value.- Parameters:
name- the name of the parameter to be added.value- value of the parameter.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
-
add
Adds a parameter of type Integer to this list with the given name and value.- Parameters:
name- the name of the parameter to be added.value- value of the parameter.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
-
add
Adds a parameter of type Long to this list with the given name and value.- Parameters:
name- the name of the parameter to be added.value- value of the parameter.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
-
add
Adds a parameter of type Boolean to this list with the given name and value.- Parameters:
name- the name of the parameter to be added.value- value of the parameter.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
-
add
Adds a parameter to this list with the given name and data type. A parameter added via this method has no value and is not flagged as read-only.- Parameters:
name- the name of the parameter to be added.type- the data type of the parameter. The data type is one of the supported data types.
-
add
Adds a parameter to the list with the given information about the parameter.- Parameters:
name- the name of the parameter to be added.type- the data type of the parametervalue- an optional (default) value of the parameter. The data type of the value must match with the type argument.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.
-
add
public void add(String name, ParameterInfo.DataType type, Object value, boolean readOnly, boolean legacy) Adds a parameter to the list with the given information about the parameter.- Parameters:
name- the name of the parameter to be added.type- the data type of the parametervalue- an optional (default) value of the parameter. The data type of the value must match with the type argument.readOnly- indicates whether the parameter is read-only or not. If read only, subsequent objects cannot change the value.legacy- indicates whether the parameter is legacy
-
add
Adds a parameter to the list.This simply adds the specified
ParameterInfoto the list, it does not create a newParameterInfoobject.- Parameters:
param- the parameter info instance to be added to the list.- Throws:
NullPointerException- if the parameter info isnull.
-
getNames
Returns all the names of the parameters in this list. The method is useful for iterating over all the parameters.- Returns:
- parameter names as Enumeration.
-
contains
Indicates if this list contains a parameter for the given name.- Parameters:
name- the name of the parameter- Returns:
trueif the parameter exists in the list, orfalseif not.
-
get
Returns the information about the given parameter from this list.- Parameters:
name- the name of the parameter whose information is returned.- Returns:
- an instance of
ParameterInfofor the parameter. This will benullif this list does not contain a parameter with the given name.
-
getAll
Returns a collection view of all the parameters from this list.- Returns:
- a collection containing instances of
ParameterInfo
-
getValue
Gets the value for a parameter in the list.- Parameters:
name- the name of the parameter- Returns:
- the parameter value. This will be
nullif the list does not a parameter with the given name.
-
remove
Removes the given parameter from the list.- Parameters:
name- the name of the parameter to be removed.
-
clear
public void clear()Removes all parameter information from this list. -
size
public int size()Returns the number of parameters in this list. -
hashCode
public int hashCode()Returns the hash code value of this list. -
equals
Compares the specific object with this object for equality. -
compareSpecial
Compares the specific object with this object for equality, including parameters. The result differentiates differences in customizable parameters versus other differences.- Parameters:
obj- the object to be compared.- Returns:
- 0 if the objects are equal; -1 if the only differences are for customizable params, including additions, and removals; 1 if there are any other differences.
-