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.map
Class JpaNamedQuery

    java.lang.Object
      org.apache.cayenne.jpa.map.JpaNamedQuery

All Implemented Interfaces:
  XMLSerializable

Direct Known Subclasses:
  JpaNamedNativeQuery

    public class JpaNamedQuery

extends Object
implements XMLSerializable

Field Summary
`protected Collection<JpaQueryHint>` | `hints`
`protected String` | `name`
`protected String` | `query`

Constructor Summary
`JpaNamedQuery()`
`JpaNamedQuery(javax.persistence.NamedQuery annotation)`

Method Summary
`void` | `encodeAsXML(XMLEncoder encoder)` Prints itself as XML to the provided XMLEncoder.
`JpaQueryHint` | `getHint(String name)` Returns a hint matching hint name.
`Collection<JpaQueryHint>` | `getHints()`
`String` | `getName()`
`String` | `getQuery()`
`void` | `setName(String name)`
`void` | `setQuery(String query)`

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

Field Detail

### name

    protected String name

### query

    protected String query

### hints

    protected Collection<JpaQueryHint> hints

Constructor Detail

### JpaNamedQuery

    public JpaNamedQuery()

### JpaNamedQuery

    public JpaNamedQuery(javax.persistence.NamedQuery annotation)

Method Detail

### encodeAsXML

    public void encodeAsXML(XMLEncoder encoder)

  Description copied from interface: `XMLSerializable`
  Prints itself as XML to the provided XMLEncoder.

  Specified by:
    `encodeAsXML` in interface `XMLSerializable`

### getName

    public String getName()

### setName

    public void setName(String name)

### getQuery

    public String getQuery()

### setQuery

    public void setQuery(String query)

### getHints

    public Collection<JpaQueryHint> getHints()

### getHint

    public JpaQueryHint getHint(String name)

  Returns a hint matching hint name.

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-2008 Apache Cayenne. All Rights Reserved.