public class ParameterMetadata extends Object implements Serializable
| Constructor and Description |
|---|
ParameterMetadata(OrdinalParameterDescriptor[] ordinalDescriptors,
Map<String,NamedParameterDescriptor> namedDescriptorMap)
Instantiates a ParameterMetadata container.
|
public ParameterMetadata(OrdinalParameterDescriptor[] ordinalDescriptors, Map<String,NamedParameterDescriptor> namedDescriptorMap)
ordinalDescriptors - Descriptors of the ordinal parametersnamedDescriptorMap - Descriptors of the named parameterspublic int getOrdinalParameterCount()
public OrdinalParameterDescriptor getOrdinalParameterDescriptor(int position)
position - The position (1 based)QueryParameterException - If the position is out of range@Deprecated public Type getOrdinalParameterExpectedType(int position)
OrdinalParameterDescriptor.getExpectedType() from the
getOrdinalParameterDescriptor(int) return insteadposition - The position@Deprecated public int getOrdinalParameterSourceLocation(int position)
OrdinalParameterDescriptor.getSourceLocation() from the
getOrdinalParameterDescriptor(int) return insteadposition - The positionpublic Set<String> getNamedParameterNames()
public NamedParameterDescriptor getNamedParameterDescriptor(String name)
name - The name of the parameter to locateQueryParameterException - If the name could not be resolved to a named parameter@Deprecated public Type getNamedParameterExpectedType(String name)
NamedParameterDescriptor.getExpectedType() from the
getNamedParameterDescriptor(java.lang.String) return insteadname - The name of the parameter@Deprecated public int[] getNamedParameterSourceLocations(String name)
NamedParameterDescriptor.getSourceLocations() from the
getNamedParameterDescriptor(java.lang.String) return insteadname - The name of the parameterCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.