EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

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.
 
Methods inherited from interface javax.persistence.criteria.Expression
as, getJavaType, in, isNotNull, isNull
 
Methods inherited from interface javax.persistence.criteria.Selection
setAlias
 
Methods inherited from interface javax.persistence.ResultItem
getAlias
 

Method Detail

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

EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference