Package org.teiid.metadata
Class FunctionParameter
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.BaseColumn
-
- org.teiid.metadata.FunctionParameter
-
- All Implemented Interfaces:
Serializable
public class FunctionParameter extends BaseColumn
A function parameter defines the name and description of an input or output parameter for a function. The name should not be null, but that is not verified by this class. The type string used in the function parameter should be one of the standard type names defined inDataTypeManager.DefaultDataTypes.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.teiid.metadata.BaseColumn
BaseColumn.NullType
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
Fields Modifier and Type Field Description static StringOUTPUT_PARAMETER_NAME-
Fields inherited from class org.teiid.metadata.BaseColumn
DEFAULT_HANDLING, DEFAULT_PRECISION, DEFAULT_SCALE, EXPRESSION_DEFAULT, OMIT_DEFAULT, SPATIAL_COORD_DIMENSION, SPATIAL_SRID, SPATIAL_TYPE
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description FunctionParameter()Construct a function parameter with no attributes.FunctionParameter(String name, String type)Construct a function parameter with no description.FunctionParameter(String name, String type, String description)Construct a function parameter with all attributes.FunctionParameter(String name, String type, String description, boolean vararg)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Compare with other object for equality.StringgetDescription()Get description of parameterFunctionMethodgetParent()StringgetType()Deprecated.inthashCode()Return hash code for this parameter.booleanisVarArg()voidsetDescription(String description)Set description of parametervoidsetParent(FunctionMethod functionMethod)voidsetType(String type)Deprecated.voidsetVarArg(boolean isVarArg)StringtoString()Return string version for debugging purposes-
Methods inherited from class org.teiid.metadata.BaseColumn
getArrayDimensions, getDatatype, getDatatypeUUID, getDefaultValue, getJavaType, getLength, getNativeType, getNullType, getPosition, getPrecision, getRadix, getRuntimeType, getScale, isDefaultPrecisionScale, setDatatype, setDatatype, setDatatype, setDatatypeUUID, setDefaultValue, setLength, setNativeType, setNullType, setPosition, setPrecision, setRadix, setRuntimeType, setScale
-
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID
-
-
-
-
Field Detail
-
OUTPUT_PARAMETER_NAME
public static final String OUTPUT_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FunctionParameter
public FunctionParameter()
Construct a function parameter with no attributes.
-
FunctionParameter
public FunctionParameter(String name, String type)
Construct a function parameter with no description.- Parameters:
name- Nametype- Type from standard set of types
-
FunctionParameter
public FunctionParameter(String name, String type, String description)
Construct a function parameter with all attributes.- Parameters:
name- Nametype- Type from standard set of typesdescription- Description
-
-
Method Detail
-
getDescription
public String getDescription()
Get description of parameter- Returns:
- Description
-
setDescription
public void setDescription(String description)
Set description of parameter- Parameters:
description- Description
-
getType
public String getType()
Deprecated.Get type of parameter- Returns:
- Type name
- See Also:
DataTypeManager.DefaultDataTypes
-
setType
public void setType(String type)
Deprecated.Set type of parameter- Parameters:
type- Type of parameter- See Also:
DataTypeManager.DefaultDataTypes
-
hashCode
public int hashCode()
Return hash code for this parameter. The hash code is based only on the type of the parameter. Changing the type of the parameter after placing this object in a hashed collection will likely cause the object to be lost.- Overrides:
hashCodein classAbstractMetadataRecord- Returns:
- Hash code
-
equals
public boolean equals(Object obj)
Compare with other object for equality. Equality is based on whether the type is the same as the other parameter.- Overrides:
equalsin classAbstractMetadataRecord- Returns:
- True if equal to obj
-
toString
public String toString()
Return string version for debugging purposes- Overrides:
toStringin classAbstractMetadataRecord- Returns:
- String representation of function parameter
-
setVarArg
public void setVarArg(boolean isVarArg)
-
isVarArg
public boolean isVarArg()
-
setParent
public void setParent(FunctionMethod functionMethod)
-
getParent
public FunctionMethod getParent()
- Overrides:
getParentin classAbstractMetadataRecord
-
-