org.apache.cayenne.jpa
Class JpaNamedQuery

java.lang.Object
  extended by org.apache.cayenne.jpa.JpaQuery
      extended by org.apache.cayenne.jpa.JpaNamedQuery
All Implemented Interfaces:
javax.persistence.Query

public class JpaNamedQuery
extends JpaQuery


Field Summary
protected  Map<String,Object> parameters
           
protected  String queryName
           
 
Fields inherited from class org.apache.cayenne.jpa.JpaQuery
context
 
Constructor Summary
JpaNamedQuery(ObjectContext ctxt, String queryName)
           
 
Method Summary
protected  Query getQuery()
           
 javax.persistence.Query setParameter(int position, Object value)
          Bind an argument to a positional parameter.
 javax.persistence.Query setParameter(String name, Object value)
          Bind an argument to a named parameter.
 
Methods inherited from class org.apache.cayenne.jpa.JpaQuery
executeUpdate, getResultList, getSingleResult, setFirstResult, setFlushMode, setHint, setMaxResults, setParameter, setParameter, setParameter, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

protected Map<String,Object> parameters

queryName

protected String queryName
Constructor Detail

JpaNamedQuery

public JpaNamedQuery(ObjectContext ctxt,
                     String queryName)
Method Detail

getQuery

protected Query getQuery()
Specified by:
getQuery in class JpaQuery

setParameter

public javax.persistence.Query setParameter(String name,
                                            Object value)
Description copied from class: JpaQuery
Bind an argument to a named parameter.

Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in class JpaQuery
Parameters:
name - the parameter name
Returns:
the same query instance

setParameter

public javax.persistence.Query setParameter(int position,
                                            Object value)
Description copied from class: JpaQuery
Bind an argument to a positional parameter.

Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in class JpaQuery
Returns:
the same query instance


Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.