javax.persistence
Interface Parameter<T>

Type Parameters:
T - the type of the parameter
All Known Subinterfaces:
ParameterExpression<T>

public interface Parameter<T>

Type for query parameters.


Method Summary
 String getName()
          Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.
 Integer getPosition()
          Return the parameter position, or null if the parameter is not a positional parameter.
 

Method Detail

getName

String getName()
Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.

Returns:
parameter name

getPosition

Integer getPosition()
Return the parameter position, or null if the parameter is not a positional parameter.

Returns:
position of parameter


Copyright © 2007-2009 Hibernate.org. All Rights Reserved.