org.datanucleus.jpa
Class JPAQueryParameter<T>

java.lang.Object
  extended by org.datanucleus.jpa.JPAQueryParameter<T>
Type Parameters:
T -
All Implemented Interfaces:
javax.persistence.Parameter<T>

public class JPAQueryParameter<T>
extends java.lang.Object
implements javax.persistence.Parameter<T>

Implementation of a JPA query parameter.


Constructor Summary
JPAQueryParameter(java.lang.Integer pos, java.lang.Class<T> type)
           
JPAQueryParameter(java.lang.String name, java.lang.Class<T> type)
           
 
Method Summary
 java.lang.String getName()
          Return the parameter name, or null if the parameter is not a named parameter.
 java.lang.Class<T> getParameterType()
           
 java.lang.Integer getPosition()
          Return the parameter position, or null if the parameter is not a positional parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPAQueryParameter

public JPAQueryParameter(java.lang.String name,
                         java.lang.Class<T> type)

JPAQueryParameter

public JPAQueryParameter(java.lang.Integer pos,
                         java.lang.Class<T> type)
Method Detail

getName

public java.lang.String getName()
Return the parameter name, or null if the parameter is not a named parameter.

Specified by:
getName in interface javax.persistence.Parameter<T>
Returns:
parameter name

getPosition

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

Specified by:
getPosition in interface javax.persistence.Parameter<T>
Returns:
position of parameter

getParameterType

public java.lang.Class<T> getParameterType()
Specified by:
getParameterType in interface javax.persistence.Parameter<T>


Copyright © 2011. All Rights Reserved.