Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.jpa
Class JpaNativeQuery

    java.lang.Object
      org.apache.cayenne.jpa.JpaQuery
          org.apache.cayenne.jpa.JpaNativeQuery

All Implemented Interfaces:
  javax.persistence.Query

    public class JpaNativeQuery

extends JpaQuery

Field Summary

Fields inherited from class org.apache.cayenne.jpa.JpaQuery
`cayenneQuery, context, parameters`

Constructor Summary
`JpaNativeQuery(ObjectContext context, String sqlString, Class resultClass)`
`JpaNativeQuery(ObjectContext context, String sqlString, String dataMapName)`

Method Summary
`protected String` | `processSQLString(String sqlString)`
`javax.persistence.Query` | `setParameter(int position, Object value)` Bind an argument to a positional parameter.

Methods inherited from class org.apache.cayenne.jpa.JpaQuery
`executeUpdate, getQuery, getResultList, getSingleResult, setFirstResult, setFlushMode, setHint, setMaxResults, setParameter, setParameter, setParameter, setParameter, setParameter, setQuery`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JpaNativeQuery

    public JpaNativeQuery(ObjectContext context,
                          String sqlString,
                          Class resultClass)

### JpaNativeQuery

    public JpaNativeQuery(ObjectContext context,
                          String sqlString,
                          String dataMapName)

Method Detail

### processSQLString

    protected String processSQLString(String sqlString)

### setParameter

    public javax.persistence.Query setParameter(int position,
                                                Object value)

  Bind an argument to a positional parameter.

  Specified by:
    `setParameter` in interface `javax.persistence.Query`
  Overrides:
    `setParameter` in class `JpaQuery`
  Parameters:
    `position` -
    `value` -
  Returns:
    the same query instance
  Throws:
    `IllegalArgumentException` - if position does not correspond to positional parameter of query or argument is of incorrect type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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