javax.persistence
Interface Parameter<T>
- Type Parameters:
T - the type of the parameter
- All Superinterfaces:
- Expression<T>, ResultItem<T>, Selection<T>
public interface Parameter<T>
- extends Expression<T>
Type for query parameters.
- Since:
- Java Persistence 2.0
|
Method Summary |
java.lang.String |
getName()
Return the parameter name, or null if the parameter is not a named
parameter. |
java.lang.Integer |
getPosition()
Return the parameter position, or null if the parameter is not a
positional parameter. |
getName
java.lang.String getName()
- Return the parameter name, or null if the parameter is not a named
parameter.
- Returns:
- parameter name
getPosition
java.lang.Integer getPosition()
- Return the parameter position, or null if the parameter is not a
positional parameter.
- Returns:
- position of parameter