|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.persistence.ParameterImpl<T>
T
- type of value carried by this parameter.public class ParameterImpl<T>
A user-defined parameter of a query.
A parameter is uniquely identified within the scope of a query by either
its name or integral position. The integral position refers to the integer
key as specified by the user. The index of this parameter during execution
in a datastore query may be different.
A value can be bound to this parameter. This behavior of a parameter carrying
its own value is a change from earlier versions (where no explicit abstraction
existed for a query parameter).
Constructor Summary | |
---|---|
ParameterImpl(int position,
java.lang.Class<T> expectedValueType)
Construct a positional parameter with the given position as key and given expected value type. |
|
ParameterImpl(java.lang.String name,
java.lang.Class<T> expectedValueType)
Construct a named parameter with the given name as key and given expected value type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Equals if the other parameter has the same name or position. |
java.lang.String |
getName()
|
java.lang.Class<T> |
getParameterType()
|
java.lang.Integer |
getPosition()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterImpl(int position, java.lang.Class<T> expectedValueType)
public ParameterImpl(java.lang.String name, java.lang.Class<T> expectedValueType)
Method Detail |
---|
public final java.lang.String getName()
getName
in interface javax.persistence.Parameter<T>
public final java.lang.Integer getPosition()
getPosition
in interface javax.persistence.Parameter<T>
public java.lang.Class<T> getParameterType()
getParameterType
in interface javax.persistence.Parameter<T>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |