Package org.hibernate.engine.query.spi
Class NamedParameterDescriptor
- java.lang.Object
-
- org.hibernate.engine.query.spi.AbstractParameterDescriptor
-
- org.hibernate.engine.query.spi.NamedParameterDescriptor
-
- All Implemented Interfaces:
Parameter
,QueryParameter
public class NamedParameterDescriptor extends AbstractParameterDescriptor
Descriptor regarding a named parameter.
-
-
Constructor Summary
Constructors Constructor Description NamedParameterDescriptor(java.lang.String name, Type expectedType, int[] sourceLocations)
Constructs a NamedParameterDescriptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
int
hashCode()
-
Methods inherited from class org.hibernate.engine.query.spi.AbstractParameterDescriptor
getExpectedType, getHibernateType, getParameterType, getPosition, getSourceLocations, resetExpectedType
-
-
-
-
Constructor Detail
-
NamedParameterDescriptor
public NamedParameterDescriptor(java.lang.String name, Type expectedType, int[] sourceLocations)
Constructs a NamedParameterDescriptor- Parameters:
name
- The name of the parameterexpectedType
- The expected type of the parameter, according to the translatorsourceLocations
- The locations of the named parameters (aye aye aye)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceParameter
- Overrides:
getName
in classAbstractParameterDescriptor
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-